java.awt.dnd

Class DragGestureRecognizer

public abstract class DragGestureRecognizer extends Object implements Serializable

STUBBED

Since: 1.2

Field Summary
protected Componentcomponent
protected DragGestureListenerdragGestureListener
protected DragSourcedragSource
protected ArrayList<InputEvent>events
protected intsourceActions
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
voidaddDragGestureListener(DragGestureListener dgl)
Register a new DragGestureListener.
protected voidappendEvent(InputEvent e)
protected voidfireDragGestureRecognized(int dragAction, Point p)
Fires a DragGestureEvent to the DragGestureListener associated with this object, if there is one.
ComponentgetComponent()
DragSourcegetDragSource()
intgetSourceActions()
InputEventgetTriggerEvent()
protected abstract voidregisterListeners()
voidremoveDragGestureListener(DragGestureListener dgl)
voidresetRecognizer()
Resets the recognizer.
voidsetComponent(Component c)
voidsetSourceActions(int sa)
protected abstract voidunregisterListeners()

Field Detail

component

protected Component component

dragGestureListener

protected transient DragGestureListener dragGestureListener

dragSource

protected DragSource dragSource

events

protected ArrayList<InputEvent> events

sourceActions

protected int sourceActions

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

addDragGestureListener

public void addDragGestureListener(DragGestureListener dgl)
Register a new DragGestureListener.

Throws: TooManyListenersException If a DragGestureListener has already been added.

appendEvent

protected void appendEvent(InputEvent e)

fireDragGestureRecognized

protected void fireDragGestureRecognized(int dragAction, Point p)
Fires a DragGestureEvent to the DragGestureListener associated with this object, if there is one.

getComponent

public Component getComponent()

getDragSource

public DragSource getDragSource()

getSourceActions

public int getSourceActions()

getTriggerEvent

public InputEvent getTriggerEvent()

registerListeners

protected abstract void registerListeners()

removeDragGestureListener

public void removeDragGestureListener(DragGestureListener dgl)

resetRecognizer

public void resetRecognizer()
Resets the recognizer. If a gesture is currently recognize, discard it.

setComponent

public void setComponent(Component c)

setSourceActions

public void setSourceActions(int sa)

unregisterListeners

protected abstract void unregisterListeners()