API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.dnd. MouseDragGestureRecognizer View Source
Author(s)
Laurence P. G. Cable
Since
Version
1.15
Serial
Hierarchy
 Object
      DragGestureRecognizer
          MouseDragGestureRecognizer
Implements
 MouseListener
 MouseMotionListener
Subclasses
Description
publicabstract abstract class MouseDragGestureRecognizer
  This abstract subclass of DragGestureRecognizer defines a DragGestureRecognizer for mouse-based gestures.
Constructors
protected MouseDragGestureRecognizer (DragSource ds)
  Construct a new MouseDragGestureRecognizer given the DragSource for the Component.
protected MouseDragGestureRecognizer (DragSource ds, Component c)
  Construct a new MouseDragGestureRecognizer given the DragSource for the Component c, and the Component to observe.
protected MouseDragGestureRecognizer (DragSource ds, Component c, int act)
  Construct a new MouseDragGestureRecognizer given the DragSource for the Component c, the Component to observe, and the action(s) permitted for this drag operation.
protected MouseDragGestureRecognizer (DragSource ds, Component c, int act, DragGestureListener dgl)
  Construct a new MouseDragGestureRecognizer given the DragSource for the Component c, the Component to observe, the action(s) permitted for this drag operation, and the DragGestureListener to notify when a drag gesture is detected.
Methods
Hide/Show inherited methods
publicsynchronized void addDragGestureListener (DragGestureListener dgl) throws TooManyListenersException [Inherited From DragGestureRecognizer]
  Register a new DragGestureListener.
protectedsynchronized void appendEvent (InputEvent awtie) [Inherited From DragGestureRecognizer]
  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) [Inherited From DragGestureRecognizer]
  Notify the DragGestureListener that a Drag and Drop initiating gesture has occurred.
publicsynchronized Component getComponent () [Inherited From DragGestureRecognizer]
  This method returns the Component that is to be "observed" by the DragGestureRecognizer for drag initiating gestures.
public DragSource getDragSource () [Inherited From DragGestureRecognizer]
  This method returns the DragSource this DragGestureRecognizer will use in order to process the Drag and Drop operation.
publicsynchronized int getSourceActions () [Inherited From DragGestureRecognizer]
  This method returns an int representing the type of action(s) this Drag and Drop operation will support.
public InputEvent getTriggerEvent () [Inherited From DragGestureRecognizer]
  This method returns the first event in the series of events that initiated the Drag and Drop operation.
public void mouseClicked (MouseEvent e) [Specified in MouseListener]
  Invoked when the mouse has been clicked on a component.
public void mouseDragged (MouseEvent e) [Specified in MouseMotionListener]
  Invoked when a mouse button is pressed on a component.
public void mouseEntered (MouseEvent e) [Specified in MouseListener]
  Invoked when the mouse enters a component.
public void mouseExited (MouseEvent e) [Specified in MouseListener]
  Invoked when the mouse exits a component.
public void mouseMoved (MouseEvent e) [Specified in MouseMotionListener]
  Invoked when the mouse button has been moved on a component (with no buttons no down).
public void mousePressed (MouseEvent e) [Specified in MouseListener]
  Invoked when a mouse button has been pressed on a Component.
public void mouseReleased (MouseEvent e) [Specified in MouseListener]
  Invoked when a mouse button has been released on a component.
protected void registerListeners () [Specified in DragGestureRecognizer]
register this DragGestureRecognizer's Listeners with the Component
publicsynchronized void removeDragGestureListener (DragGestureListener dgl) [Inherited From DragGestureRecognizer]
  unregister the current DragGestureListener
public void resetRecognizer () [Inherited From DragGestureRecognizer]
Reset the Recognizer, if its currently recognizing a gesture, ignore it.
publicsynchronized void setComponent (Component c) [Inherited From DragGestureRecognizer]
  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) [Inherited From DragGestureRecognizer]
  This method sets the permitted source drag action(s) for this Drag and Drop operation.
protected void unregisterListeners () [Specified in DragGestureRecognizer]
unregister this DragGestureRecognizer's Listeners with the Component subclasses must override this method
Fields
Hide/Show inherited fields
protected Component component [Inherited From DragGestureRecognizer]
The Component associated with this DragGestureRecognizer.
protectedtransient DragGestureListener dragGestureListener [Inherited From DragGestureRecognizer]
The DragGestureListener associated with this DragGestureRecognizer.
protected DragSource dragSource [Inherited From DragGestureRecognizer]
The DragSource associated with this DragGestureRecognizer.
protected ArrayList<InputEvent> events [Inherited From DragGestureRecognizer]
The list of events (in order) that the DragGestureRecognizer "recognized" as a "gesture" that triggers a drag.
protected int sourceActions [Inherited From DragGestureRecognizer]
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