java.awt.dnd
Class DragGestureRecognizer
java.lang.Object
java.awt.dnd.DragGestureRecognizer
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- MouseDragGestureRecognizer
public abstract class DragGestureRecognizer
- extends Object
- implements Serializable
STUBBED
- Since:
- 1.2
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dragSource
protected DragSource dragSource
component
protected Component component
dragGestureListener
protected transient DragGestureListener dragGestureListener
sourceActions
protected int sourceActions
events
protected ArrayList<InputEvent> events
DragGestureRecognizer
protected DragGestureRecognizer(DragSource ds,
Component c,
int sa,
DragGestureListener dgl)
DragGestureRecognizer
protected DragGestureRecognizer(DragSource ds,
Component c,
int sa)
DragGestureRecognizer
protected DragGestureRecognizer(DragSource ds,
Component c)
DragGestureRecognizer
protected DragGestureRecognizer(DragSource ds)
registerListeners
protected abstract void registerListeners()
unregisterListeners
protected abstract void unregisterListeners()
getDragSource
public DragSource getDragSource()
getComponent
public Component getComponent()
setComponent
public void setComponent(Component c)
getSourceActions
public int getSourceActions()
setSourceActions
public void setSourceActions(int sa)
getTriggerEvent
public InputEvent getTriggerEvent()
resetRecognizer
public void resetRecognizer()
- Resets the recognizer. If a gesture is currently recognize, discard it.
addDragGestureListener
public void addDragGestureListener(DragGestureListener dgl)
throws TooManyListenersException
- Register a new DragGestureListener.
- Throws:
TooManyListenersException
- If a DragGestureListener has already
been added.
removeDragGestureListener
public void removeDragGestureListener(DragGestureListener dgl)
fireDragGestureRecognized
protected void fireDragGestureRecognized(int dragAction,
Point p)
- Fires a
DragGestureEvent
to the DragGestureListener
associated with this object, if there is one.
appendEvent
protected void appendEvent(InputEvent e)