Module com.flexganttfx.view
Package com.flexganttfx.view.graphics
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 Summary
Enum Constants Enum Constant Description NATIVE
A snapshot image of the activity will be taken and placed below the mouse cursor.RENDERED
The dragged activity will be constantly rendered on a separate canvas on top of the graphics area.RENDERED_GRID_SNAPPED
The dragged activity will be constantly rendered on a separate canvas on top of the graphics area. -
Method Summary
Modifier and Type Method Description static GraphicsBase.DragAndDropFeedback
valueOf(String name)
Returns the enum constant of this type with the specified name.static GraphicsBase.DragAndDropFeedback[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
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
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 activeVirtualGrid
will be used to make the dragged activity snap to the grid locations.- Since:
- 1.1
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-