java.awt.dnd
public abstract class DragGestureRecognizer extends Object implements Serializable
Since: 1.2
| Field Summary | |
|---|---|
| protected Component | component |
| protected DragGestureListener | dragGestureListener |
| protected DragSource | dragSource |
| protected ArrayList<InputEvent> | events |
| protected int | sourceActions |
| Constructor Summary | |
|---|---|
| protected | DragGestureRecognizer(DragSource ds, Component c, int sa, DragGestureListener dgl) |
| protected | DragGestureRecognizer(DragSource ds, Component c, int sa) |
| protected | DragGestureRecognizer(DragSource ds, Component c) |
| protected | DragGestureRecognizer(DragSource ds) |
| Method Summary | |
|---|---|
| void | addDragGestureListener(DragGestureListener dgl)
Register a new DragGestureListener.
|
| protected void | appendEvent(InputEvent e) |
| protected void | fireDragGestureRecognized(int dragAction, Point p)
Fires a DragGestureEvent to the DragGestureListener
associated with this object, if there is one. |
| Component | getComponent() |
| DragSource | getDragSource() |
| int | getSourceActions() |
| InputEvent | getTriggerEvent() |
| protected abstract void | registerListeners() |
| void | removeDragGestureListener(DragGestureListener dgl) |
| void | resetRecognizer()
Resets the recognizer. |
| void | setComponent(Component c) |
| void | setSourceActions(int sa) |
| protected abstract void | unregisterListeners() |
Throws: TooManyListenersException If a DragGestureListener has already been added.
DragGestureEvent to the DragGestureListener
associated with this object, if there is one.