java.awt.dnd
Class DragGestureRecognizer

java.lang.Object
  extended by 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

Field Summary
protected  Component component
           
protected  DragGestureListener dragGestureListener
           
protected  DragSource dragSource
           
protected  ArrayList<InputEvent> events
           
protected  int sourceActions
           
 
Constructor Summary
protected DragGestureRecognizer(DragSource ds)
           
protected DragGestureRecognizer(DragSource ds, Component c)
           
protected DragGestureRecognizer(DragSource ds, Component c, int sa)
           
protected DragGestureRecognizer(DragSource ds, Component c, int sa, DragGestureListener dgl)
           
 
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dragSource

protected DragSource dragSource

component

protected Component component

dragGestureListener

protected transient DragGestureListener dragGestureListener

sourceActions

protected int sourceActions

events

protected ArrayList<InputEvent> events
Constructor Detail

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)
Method Detail

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)