that it is tracking.
The {@code action} field of any {@code DragGestureEvent} instance should take one of the following
values:
Assigning the value different from listed above will cause an unspecified behavior.
| Method from java.awt.dnd.DragGestureEvent Detail: |
public Component getComponent() {
return component;
}
Returns the Component associated
with this DragGestureEvent.
|
public int getDragAction() {
return action;
}
Returns an int representing the
action selected by the user.
|
public Point getDragOrigin() {
return origin;
}
Returns a Point in the coordinates
of the Component over which the drag originated.
|
public DragSource getDragSource() {
return dragSource;
}
|
public DragGestureRecognizer getSourceAsDragGestureRecognizer() {
return (DragGestureRecognizer)getSource();
}
Returns the source as a DragGestureRecognizer.
|
public InputEvent getTriggerEvent() {
return getSourceAsDragGestureRecognizer().getTriggerEvent();
}
Returns the initial event that triggered the gesture.
|
public Iterator iterator() {
return events.iterator();
}
Returns an Iterator for the events
comprising the gesture.
|
public void startDrag(Cursor dragCursor,
Transferable transferable) throws InvalidDnDOperationException {
dragSource.startDrag(this, dragCursor, transferable, null);
}
Starts the drag operation given the Cursor for this drag
operation and the Transferable representing the source data
for this drag operation.
If a null Cursor is specified no exception will
be thrown and default drag cursors will be used instead.
If a null Transferable is specified
NullPointerException will be thrown. |
public void startDrag(Cursor dragCursor,
Transferable transferable,
DragSourceListener dsl) throws InvalidDnDOperationException {
dragSource.startDrag(this, dragCursor, transferable, dsl);
}
Starts the drag given the initial Cursor to display,
the Transferable object,
and the DragSourceListener to use.
|
public void startDrag(Cursor dragCursor,
Image dragImage,
Point imageOffset,
Transferable transferable,
DragSourceListener dsl) throws InvalidDnDOperationException {
dragSource.startDrag(this, dragCursor, dragImage, imageOffset, transferable, dsl);
}
Start the drag given the initial Cursor to display,
a drag Image, the offset of
the Image,
the Transferable object, and
the DragSourceListener to use.
|
public Object[] toArray() {
return events.toArray();
}
Returns an Object array of the
events comprising the drag gesture.
|
public Object[] toArray(Object[] array) {
return events.toArray(array);
}
Returns an array of the events comprising the drag gesture.
|