| Package | Description |
|---|---|
| java.awt.dnd | |
| java.awt.dnd.peer |
| Modifier and Type | Method and Description |
|---|---|
protected DragSourceContext |
DragSource.createDragSourceContext(DragSourceContextPeer dscp,
DragGestureEvent dgl,
Cursor dragCursor,
Image dragImage,
Point imageOffset,
Transferable t,
DragSourceListener dsl)
Creates the
DragSourceContext to handle the current drag
operation. |
DragSourceContext |
DragSourceEvent.getDragSourceContext()
This method returns the
DragSourceContext that
originated the event. |
| Constructor and Description |
|---|
DragSourceDragEvent(DragSourceContext dsc,
int dropAction,
int action,
int modifiers)
Constructs a
DragSourceDragEvent. |
DragSourceDragEvent(DragSourceContext dsc,
int dropAction,
int action,
int modifiers,
int x,
int y)
Constructs a
DragSourceDragEvent given the specified
DragSourceContext, user drop action, target drop action,
modifiers and coordinates. |
DragSourceDropEvent(DragSourceContext dsc)
Construct a
DragSourceDropEvent
for a drag that does not result in a drop. |
DragSourceDropEvent(DragSourceContext dsc,
int action,
boolean success)
Construct a
DragSourceDropEvent for a drop,
given the
DragSourceContext, the drop action,
and a boolean indicating if the drop was successful. |
DragSourceDropEvent(DragSourceContext dsc,
int action,
boolean success,
int x,
int y)
Construct a
DragSourceDropEvent for a drop, given the
DragSourceContext, the drop action, a boolean
indicating if the drop was successful, and coordinates. |
DragSourceEvent(DragSourceContext dsc)
Construct a
DragSourceEvent
given a specified DragSourceContext. |
DragSourceEvent(DragSourceContext dsc,
int x,
int y)
Construct a
DragSourceEvent given a specified
DragSourceContext, and coordinates of the cursor
location. |
| Modifier and Type | Method and Description |
|---|---|
void |
DragSourceContextPeer.startDrag(DragSourceContext dsc,
Cursor c,
Image dragImage,
Point imageOffset)
start a drag
|
Generated by SciJava from the sources of OpenJDK 8 (Zulu), which are licensed under the GNU General Public License, version 2, with the Classpath Exception. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.