java.lang.Object | ||
↳ | java.util.EventObject | |
↳ | java.awt.dnd.DragGestureEvent |
A DragGestureEvent
is passed
to DragGestureListener
's
dragGestureRecognized() method
when a particular DragGestureRecognizer
detects that a
platform dependent drag initiating gesture has occurred
on the Component
that it is tracking.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.EventObject
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a
DragGestureEvent given the
DragGestureRecognizer firing this event,
an int representing
the user's preferred action, a Point
indicating the origin of the drag, and a List
of events that comprise the gesture. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the
Component associated
with this DragGestureEvent . | |||||||||||
Returns an
int representing the
action selected by the user. | |||||||||||
Returns a
Point in the coordinates
of the Component over which the drag originated. | |||||||||||
Returns the
DragSource . | |||||||||||
Returns the source as a
DragGestureRecognizer . | |||||||||||
Returns the initial event that triggered the gesture.
| |||||||||||
Returns an
Iterator for the events
comprising the gesture. | |||||||||||
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. | |||||||||||
Starts the drag given the initial
Cursor to display,
the Transferable object,
and the DragSourceListener to use. | |||||||||||
Starts the drag operation given the
Cursor for this drag
operation and the Transferable representing the source data
for this drag operation. | |||||||||||
Returns an
Object array of the
events comprising the drag gesture. | |||||||||||
Returns an array of the events comprising the drag gesture.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.util.EventObject
| |||||||||||
From class
java.lang.Object
|
Construct a DragGestureEvent
given the
DragGestureRecognizer
firing this event,
an int
representing
the user's preferred action, a Point
indicating the origin of the drag, and a List
of events that comprise the gesture.
dgr | The DragGestureRecognizer firing this event |
---|---|
act | The the user's preferred action |
ori | The origin of the drag |
evs | The List of events that comprise the gesture
|
if input parameters are null |
Returns the Component
associated
with this DragGestureEvent
.
Returns an int
representing the
action selected by the user.
Returns a Point
in the coordinates
of the Component
over which the drag originated.
Returns the source as a DragGestureRecognizer
.
DragGestureRecognizer
Returns the initial event that triggered the gesture.
Returns an Iterator
for the events
comprising the gesture.
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.
dragCursor | The initial drag Cursor |
---|---|
dragImage | The source's dragImage |
imageOffset | The dragImage's offset |
transferable | The source's Transferable |
dsl | The source's DragSourceListener |
if the Drag and Drop system is unable to initiate a drag operation, or if the user attempts to start a drag while an existing drag operation is still executing. | |
InvalidDnDOperationException |
Starts the drag given the initial Cursor
to display,
the Transferable
object,
and the DragSourceListener
to use.
dragCursor | The initial drag Cursor |
---|---|
transferable | The source's Transferable |
dsl | The source's DragSourceListener |
if the Drag and Drop system is unable to initiate a drag operation, or if the user attempts to start a drag while an existing drag operation is still executing. | |
InvalidDnDOperationException |
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.
dragCursor | The Cursor for this drag operation |
---|---|
transferable | The Transferable representing the source
data for this drag operation. |
if the Drag and Drop system is unable to initiate a drag operation, or if the user attempts to start a drag while an existing drag operation is still executing. | |
if the
Transferable is null . |
|
InvalidDnDOperationException |
Returns an Object
array of the
events comprising the drag gesture.
Returns an array of the events comprising the drag gesture.
array | the array of EventObject sub(types)
|
---|