API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.dnd. DragGestureRecognizer View Source
Author(s)
Laurence P. G. Cable
Since
Version
1.21
Serial
Hierarchy
 Object
      DragGestureRecognizer
Implements
 Serializable
Subclasses
Description
publicabstract abstract class DragGestureRecognizer
  The DragGestureRecognizer is an abstract base class for the specification of a platform-dependent listener that can be associated with a particular Component in order to identify platform-dependent drag initiating gestures.
Constructors
protected DragGestureRecognizer (DragSource ds)
  Construct a new DragGestureRecognizer given the DragSource to be used in this Drag and Drop operation.
protected DragGestureRecognizer (DragSource ds, Component c)
  Construct a new DragGestureRecognizer given the DragSource to be used in this Drag and Drop operation, and the Component this DragGestureRecognizer should "observe" for drag initiating gestures.
protected DragGestureRecognizer (DragSource ds, Component c, int sa)
  Construct a new DragGestureRecognizer given the DragSource to be used in this Drag and Drop operation, the Component this DragGestureRecognizer should "observe" for drag initiating gestures, and the action(s) supported for this Drag and Drop operation.
protected DragGestureRecognizer (DragSource ds, Component c, int sa, DragGestureListener dgl)
  Construct a new DragGestureRecognizer given the DragSource to be used in this Drag and Drop operation, the Component this DragGestureRecognizer should "observe" for drag initiating gestures, the action(s) supported for this Drag and Drop operation, and the DragGestureListener to notify once a drag initiating gesture has been detected.
Methods
Hide/Show inherited methods
publicsynchronized void addDragGestureListener (DragGestureListener dgl) throws TooManyListenersException
  Register a new DragGestureListener.
protectedsynchronized void appendEvent (InputEvent awtie)
  Listeners registered on the Component by this Recognizer shall record all Events that are recognized as part of the series of Events that go to comprise a Drag and Drop initiating gesture via this API.
protectedsynchronized void fireDragGestureRecognized (int dragAction, Point p)
  Notify the DragGestureListener that a Drag and Drop initiating gesture has occurred.
publicsynchronized Component getComponent ()
  This method returns the Component that is to be "observed" by the DragGestureRecognizer for drag initiating gestures.
public DragSource getDragSource ()
  This method returns the DragSource this DragGestureRecognizer will use in order to process the Drag and Drop operation.
publicsynchronized int getSourceActions ()
  This method returns an int representing the type of action(s) this Drag and Drop operation will support.
public InputEvent getTriggerEvent ()
  This method returns the first event in the series of events that initiated the Drag and Drop operation.
protectedabstract void registerListeners ()
register this DragGestureRecognizer's Listeners with the Component subclasses must override this method
publicsynchronized void removeDragGestureListener (DragGestureListener dgl)
  unregister the current DragGestureListener
public void resetRecognizer ()
Reset the Recognizer, if its currently recognizing a gesture, ignore it.
publicsynchronized void setComponent (Component c)
  set the Component that the DragGestureRecognizer is associated with registerListeners() and unregisterListeners() are called as a side effect as appropriate.
publicsynchronized void setSourceActions (int actions)
  This method sets the permitted source drag action(s) for this Drag and Drop operation.
protectedabstract void unregisterListeners ()
unregister this DragGestureRecognizer's Listeners with the Component subclasses must override this method
Fields
Hide/Show inherited fields
protected Component component
The Component associated with this DragGestureRecognizer.
protectedtransient DragGestureListener dragGestureListener
The DragGestureListener associated with this DragGestureRecognizer.
protected DragSource dragSource
The DragSource associated with this DragGestureRecognizer.
protected ArrayList<InputEvent> events
The list of events (in order) that the DragGestureRecognizer "recognized" as a "gesture" that triggers a drag.
protected int sourceActions
An int representing the type(s) of action(s) used in this Drag and Drop operation.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar