Uses of Class
java.awt.dnd.DragGestureEvent
Packages that use DragGestureEvent
Package
Description
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 DragGestureEvent in java.awt.dnd
Methods in java.awt.dnd that return DragGestureEventModifier and TypeMethodDescriptionDragSourceContext.getTrigger()Returns theDragGestureEventthat initially triggered the drag.Methods in java.awt.dnd with parameters of type DragGestureEventModifier and TypeMethodDescriptionprotected DragSourceContextDragSource.createDragSourceContext(DragGestureEvent dgl, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable t, DragSourceListener dsl) Creates theDragSourceContextto handle the current drag operation.voidDragGestureListener.dragGestureRecognized(DragGestureEvent dge) This method is invoked by theDragGestureRecognizerwhen theDragGestureRecognizerdetects a platform-dependent drag initiating gesture.voidDragSource.startDrag(DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl) Start a drag, given theDragGestureEventthat initiated the drag, the initialCursorto use, theTransferablesubject data of the drag, and theDragSourceListener.voidDragSource.startDrag(DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap) Start a drag, given theDragGestureEventthat initiated the drag, the initialCursorto use, theTransferablesubject data of the drag, theDragSourceListener, and theFlavorMap.voidDragSource.startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point dragOffset, Transferable transferable, DragSourceListener dsl) Start a drag, given theDragGestureEventthat initiated the drag, the initialCursorto use, theImageto drag, the offset of theImageorigin from the hotspot of theCursorat the instant of the trigger, the subject data of the drag, and theDragSourceListener.voidDragSource.startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap) Start a drag, given theDragGestureEventthat initiated the drag, the initialCursorto use, theImageto drag, the offset of theImageorigin from the hotspot of theCursorat the instant of the trigger, theTransferablesubject data of the drag, theDragSourceListener, and theFlavorMap.Constructors in java.awt.dnd with parameters of type DragGestureEventModifierConstructorDescriptionDragSourceContext(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point offset, Transferable t, DragSourceListener dsl) Called fromDragSource, this constructor creates a newDragSourceContextgiven theDragSourceContextPeerfor this Drag, theDragGestureEventthat triggered the Drag, the initialCursorto use for the Drag, an (optional)Imageto display while the Drag is taking place, the offset of theImageorigin from the hotspot at the instant of the triggering event, theTransferablesubject data, and theDragSourceListenerto use during the Drag and Drop operation.