Enum GraphicsBase.DragAndDropFeedback

java.lang.Object
java.lang.Enum<GraphicsBase.DragAndDropFeedback>
com.flexganttfx.view.graphics.GraphicsBase.DragAndDropFeedback
All Implemented Interfaces:
Serializable, Comparable<GraphicsBase.DragAndDropFeedback>
Enclosing class:
GraphicsBase<R extends Row<?,​?,​?>>

public static enum GraphicsBase.DragAndDropFeedback
extends Enum<GraphicsBase.DragAndDropFeedback>
An enumerator used to define how to visuzalize the dragged activity during a drag and drop operation.
Since:
1.1
See Also:
GraphicsBase.setDragAndDropFeedback(DragAndDropFeedback)
  • Enum Constant Details

    • NATIVE

      public static final GraphicsBase.DragAndDropFeedback NATIVE
      A snapshot image of the activity will be taken and placed below the mouse cursor. The image will be set at the moment the drag gesture gets recognized. Optionally a drag image provider can be used. Note: the size of the image might be different than the size of the activity (platform-specific).
      Since:
      1.1
      See Also:
      GraphicsBase.setDragImageProvider(Callback)
    • RENDERED

      public static final GraphicsBase.DragAndDropFeedback RENDERED
      The dragged activity will be constantly rendered on a separate canvas on top of the graphics area. The activity is guaranteed to keep its original size.
      Since:
      1.1
    • RENDERED_GRID_SNAPPED

      public static final GraphicsBase.DragAndDropFeedback RENDERED_GRID_SNAPPED
      The dragged activity will be constantly rendered on a separate canvas on top of the graphics area. The activity is guaranteed to keep its original size. The currently active VirtualGrid will be used to make the dragged activity snap to the grid locations.
      Since:
      1.1
  • Method Details

    • values

      public static GraphicsBase.DragAndDropFeedback[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static GraphicsBase.DragAndDropFeedback valueOf​(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null