Uses of Class
java.awt.dnd.DragSourceContext
| Package | Description |
|---|---|
| java.awt.dnd |
Drag and Drop is a direct manipulation gesture found in many Graphical User
Interface systems that provides a mechanism to transfer information between
two entities logically associated with presentation elements in the GUI.
|
-
Uses of DragSourceContext in java.awt.dnd
Methods in java.awt.dnd that return DragSourceContext Modifier and Type Method Description protected DragSourceContextDragSource. createDragSourceContext(DragGestureEvent dgl, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable t, DragSourceListener dsl)Creates theDragSourceContextto handle the current drag operation.DragSourceContextDragSourceEvent. getDragSourceContext()This method returns theDragSourceContextthat originated the event.Constructors in java.awt.dnd with parameters of type DragSourceContext Constructor Description DragSourceDragEvent(DragSourceContext dsc, int dropAction, int action, int modifiers)Constructs aDragSourceDragEvent.DragSourceDragEvent(DragSourceContext dsc, int dropAction, int action, int modifiers, int x, int y)Constructs aDragSourceDragEventgiven the specifiedDragSourceContext, user drop action, target drop action, modifiers and coordinates.DragSourceDropEvent(DragSourceContext dsc)Construct aDragSourceDropEventfor a drag that does not result in a drop.DragSourceDropEvent(DragSourceContext dsc, int action, boolean success)Construct aDragSourceDropEventfor a drop, given theDragSourceContext, the drop action, and abooleanindicating if the drop was successful.DragSourceDropEvent(DragSourceContext dsc, int action, boolean success, int x, int y)Construct aDragSourceDropEventfor a drop, given theDragSourceContext, the drop action, abooleanindicating if the drop was successful, and coordinates.DragSourceEvent(DragSourceContext dsc)Construct aDragSourceEventgiven a specifiedDragSourceContext.DragSourceEvent(DragSourceContext dsc, int x, int y)Construct aDragSourceEventgiven a specifiedDragSourceContext, and coordinates of the cursor location.