| Package | Description |
|---|---|
| java.awt |
Contains all of the classes for creating user interfaces and for painting graphics and images.
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
abstract java |
Toolkit.createDragSourceContextPeer(DragGestureEvent
Creates the peer for a DragSourceContext.
|
| Modifier and Type | Method and Description |
|---|---|
DragGestureEvent |
DragSourceContext.getTrigger()
Returns the
DragGestureEvent that initially triggered the drag.
|
| Modifier and Type | Method and Description |
|---|---|
protected DragSourceContext |
DragSource.createDragSourceContext(java
Creates the
DragSourceContext to handle the current drag operation.
|
void |
DragGestureListener.dragGestureRecognized(DragGestureEvent
This method is invoked by the
DragGestureRecognizer when the
DragGestureRecognizer detects a platform-dependent drag initiating gesture.
|
void |
DragSource.startDrag(DragGestureEvent
Start a drag, given the
DragGestureEvent that initiated the drag, the initial
Cursor to use, the
Image to drag, the offset of the
Image origin from the hotspot of the
Cursor at the instant of the trigger, the subject data of the drag, and the
DragSourceListener.
|
void |
DragSource.startDrag(DragGestureEvent
Start a drag, given the
DragGestureEvent that initiated the drag, the initial
Cursor to use, the
Image to drag, the offset of the
Image origin from the hotspot of the
Cursor at the instant of the trigger, the
Transferable subject data of the drag, the
DragSourceListener, and the
FlavorMap.
|
void |
DragSource.startDrag(DragGestureEvent
Start a drag, given the
DragGestureEvent that initiated the drag, the initial
Cursor to use, the
Transferable subject data of the drag, and the
DragSourceListener.
|
void |
DragSource.startDrag(DragGestureEvent
Start a drag, given the
DragGestureEvent that initiated the drag, the initial
Cursor to use, the
Transferable subject data of the drag, the
DragSourceListener, and the
FlavorMap.
|
| Constructor and Description | |
|---|---|
DragSourceContext(java
Called from
DragSource, this constructor creates a new
DragSourceContext given the
DragSourceContextPeer for this Drag, the
DragGestureEvent that triggered the Drag, the initial
Cursor to use for the Drag, an (optional)
Image to display while the Drag is taking place, the offset of the
Image origin from the hotspot at the instant of the triggering event, the
Transferable subject data, and the
DragSourceListener to use during the Drag and Drop operation.
|