java.awt.dnd
Class MouseDragGestureRecognizer

java.lang.Object
  extended by java.awt.dnd.DragGestureRecognizer
      extended by java.awt.dnd.MouseDragGestureRecognizer
All Implemented Interfaces:
MouseListener, MouseMotionListener, Serializable, EventListener

public abstract class MouseDragGestureRecognizer
extends DragGestureRecognizer
implements MouseListener, MouseMotionListener

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.dnd.DragGestureRecognizer
component, dragGestureListener, dragSource, events, sourceActions
 
Constructor Summary
protected MouseDragGestureRecognizer(DragSource ds)
          Creates a MouseDragGestureRecognizer object.
protected MouseDragGestureRecognizer(DragSource ds, Component c)
          Creates a MouseDragGestureRecognizer object.
protected MouseDragGestureRecognizer(DragSource ds, Component c, int act)
          Creates a MouseDragGestureRecognizer object.
protected MouseDragGestureRecognizer(DragSource ds, Component c, int act, DragGestureListener dgl)
          Creates a MouseDragGestureRecognizer object.
 
Method Summary
 void mouseClicked(MouseEvent e)
          This method is called when the mouse is clicked (pressed and released in short succession) on a component.
 void mouseDragged(MouseEvent e)
          This method is called when the mouse is moved over a component while a button has been pressed.
 void mouseEntered(MouseEvent e)
          This method is called when the mouse enters a component.
 void mouseExited(MouseEvent e)
          This method is called when the mouse exits a component.
 void mouseMoved(MouseEvent e)
          This method is called when the mouse is moved over a component while no button is pressed.
 void mousePressed(MouseEvent e)
          This method is called when the mouse is pressed over a component.
 void mouseReleased(MouseEvent e)
          This method is called when the mouse is released over a component.
protected  void registerListeners()
           
protected  void unregisterListeners()
           
 
Methods inherited from class java.awt.dnd.DragGestureRecognizer
addDragGestureListener, appendEvent, fireDragGestureRecognized, getComponent, getDragSource, getSourceActions, getTriggerEvent, removeDragGestureListener, resetRecognizer, setComponent, setSourceActions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MouseDragGestureRecognizer

protected MouseDragGestureRecognizer(DragSource ds,
                                     Component c,
                                     int act,
                                     DragGestureListener dgl)
Creates a MouseDragGestureRecognizer object.


MouseDragGestureRecognizer

protected MouseDragGestureRecognizer(DragSource ds,
                                     Component c,
                                     int act)
Creates a MouseDragGestureRecognizer object.


MouseDragGestureRecognizer

protected MouseDragGestureRecognizer(DragSource ds,
                                     Component c)
Creates a MouseDragGestureRecognizer object.


MouseDragGestureRecognizer

protected MouseDragGestureRecognizer(DragSource ds)
Creates a MouseDragGestureRecognizer object.

Method Detail

registerListeners

protected void registerListeners()
Specified by:
registerListeners in class DragGestureRecognizer

unregisterListeners

protected void unregisterListeners()
Specified by:
unregisterListeners in class DragGestureRecognizer

mouseClicked

public void mouseClicked(MouseEvent e)
Description copied from interface: MouseListener
This method is called when the mouse is clicked (pressed and released in short succession) on a component.

Specified by:
mouseClicked in interface MouseListener
Parameters:
e - the MouseEvent indicating the click

mousePressed

public void mousePressed(MouseEvent e)
Description copied from interface: MouseListener
This method is called when the mouse is pressed over a component.

Specified by:
mousePressed in interface MouseListener
Parameters:
e - the MouseEvent for the press

mouseReleased

public void mouseReleased(MouseEvent e)
Description copied from interface: MouseListener
This method is called when the mouse is released over a component.

Specified by:
mouseReleased in interface MouseListener
Parameters:
e - the MouseEvent for the release

mouseEntered

public void mouseEntered(MouseEvent e)
Description copied from interface: MouseListener
This method is called when the mouse enters a component.

Specified by:
mouseEntered in interface MouseListener
Parameters:
e - the MouseEvent for the entry

mouseExited

public void mouseExited(MouseEvent e)
Description copied from interface: MouseListener
This method is called when the mouse exits a component.

Specified by:
mouseExited in interface MouseListener
Parameters:
e - the MouseEvent for the exit

mouseDragged

public void mouseDragged(MouseEvent e)
Description copied from interface: MouseMotionListener
This method is called when the mouse is moved over a component while a button has been pressed.

Specified by:
mouseDragged in interface MouseMotionListener
Parameters:
e - the MouseEvent indicating the motion

mouseMoved

public void mouseMoved(MouseEvent e)
Description copied from interface: MouseMotionListener
This method is called when the mouse is moved over a component while no button is pressed.

Specified by:
mouseMoved in interface MouseMotionListener
Parameters:
e - the MouseEvent indicating the motion