edu.umd.cs.jazz.event
Interface ZMouseMotionListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
ZFilteredEventHandler.ZFilteredEventDispatcher, ZLinkEventHandler, ZMouseMotionAdapter, ZNavEventHandlerKeyBoard, ZSelectionEventHandler, ZSelectionResizeHandler.ResizeHandles, ZSwingEventHandler

public interface ZMouseMotionListener
extends java.util.EventListener

ZMouseMotionListener is a listener interface for receiving mouse motion events on a node. (For clicks and other mouse events, use the ZMouseListener.)

The class that is interested in processing a mouse motion event either implements this interface (and all the methods it contains) or extends the abstract ZMouseMotionAdapter class (overriding only the methods of interest).

The listener object created from that class is then registered with a node using the component's addMouseMotionListener method. A mouse motion event is generated when the mouse is moved or dragged. (Many such events will be generated). When a mouse motion event occurs, the relevant method in the listener object is invoked, and the ZMouseEvent is passed to it.

See Also:
ZMouseMotionAdapter, ZMouseEvent

Method Summary
 void mouseDragged(ZMouseEvent e)
          Invoked when a mouse button is pressed on a node and then dragged.
 void mouseMoved(ZMouseEvent e)
          Invoked when the mouse button has been moved on a node (with no buttons no down).
 

Method Detail

mouseDragged

public void mouseDragged(ZMouseEvent e)
Invoked when a mouse button is pressed on a node and then dragged. Mouse drag events will continue to be delivered to the node where the first originated until the mouse button is released (regardless of whether the mouse position is within the bounds of the node).


mouseMoved

public void mouseMoved(ZMouseEvent e)
Invoked when the mouse button has been moved on a node (with no buttons no down).



Copyright � 2003 by University of Maryland, College Park, MD 20742, USA All rights reserved.