public interface DnDSource extends DnDDropActionHandler
Modifier and Type | Method and Description |
---|---|
boolean |
canStartDragging(DnDAction action,
java.awt.Point dragOrigin) |
default Pair<java.awt.Image,java.awt.Point> |
createDraggedImage(DnDAction action,
java.awt.Point dragOrigin)
Deprecated.
override
createDraggedImage(DnDAction, Point, DnDDragStartBean) instead |
default Pair<java.awt.Image,java.awt.Point> |
createDraggedImage(DnDAction action,
java.awt.Point dragOrigin,
DnDDragStartBean bean)
Image to be drawn on screen while dragging and the point of the offset to position cursor
in the proper place
|
default void |
dragDropEnd() |
default void |
dropActionChanged(int gestureModifiers) |
DnDDragStartBean |
startDragging(DnDAction action,
java.awt.Point dragOrigin) |
boolean canStartDragging(DnDAction action, java.awt.Point dragOrigin)
DnDDragStartBean startDragging(DnDAction action, java.awt.Point dragOrigin)
default Pair<java.awt.Image,java.awt.Point> createDraggedImage(DnDAction action, java.awt.Point dragOrigin, DnDDragStartBean bean)
action
- drag-n-drop actiondragOrigin
- origin drag pointbean
- a bean to create an image for@Deprecated default Pair<java.awt.Image,java.awt.Point> createDraggedImage(DnDAction action, java.awt.Point dragOrigin)
createDraggedImage(DnDAction, Point, DnDDragStartBean)
insteaddefault void dragDropEnd()
default void dropActionChanged(int gestureModifiers)
dropActionChanged
in interface DnDDropActionHandler