| 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 |
|---|---|
<T extends DragGestureRecognizer |
Toolkit.createDragGestureRecognizer(Class
Creates a concrete, platform dependent, subclass of the abstract DragGestureRecognizer class requested, and associates it with the DragSource, Component and DragGestureListener specified.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MouseDragGestureRecognizer
This abstract subclass of
DragGestureRecognizer defines a
DragGestureRecognizer for mouse-based gestures.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends DragGestureRecognizer |
DragSource.createDragGestureRecognizer(Class
Creates a new
DragGestureRecognizer that implements the specified abstract subclass of
DragGestureRecognizer, and sets the specified
Component and
DragGestureListener on the newly created object.
|
| Modifier and Type | Method and Description |
|---|---|
DragGestureRecognizer |
DragSource.createDefaultDragGestureRecognizer(Component
Creates a new
DragGestureRecognizer that implements the default abstract subclass of
DragGestureRecognizer for this
DragSource, and sets the specified
Component and
DragGestureListener on the newly created object.
|
DragGestureRecognizer |
DragGestureEvent.getSourceAsDragGestureRecognizer()
Returns the source as a
DragGestureRecognizer.
|
| Constructor and Description | |
|---|---|
DragGestureEvent(DragGestureRecognizer
Constructs a
DragGestureEvent object given by the
DragGestureRecognizer instance firing this event, an
act parameter representing the user's preferred action, an
ori parameter indicating the origin of the drag, and a
List of events that comprise the gesture(
evs parameter).
|