edu.umd.cs.jazz.event
Class ZMouseMotionEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--java.awt.AWTEvent
              |
              +--java.awt.event.ComponentEvent
                    |
                    +--java.awt.event.InputEvent
                          |
                          +--java.awt.event.MouseEvent
                                |
                                +--edu.umd.cs.jazz.event.ZMouseEvent
                                      |
                                      +--edu.umd.cs.jazz.event.ZMouseMotionEvent
All Implemented Interfaces:
java.io.Serializable, ZEvent

public class ZMouseMotionEvent
extends ZMouseEvent

ZMouseMotionEvent is an event which indicates that a mouse motion action occurred in a node.

This low-level event is generated by a node object for:

A ZMouseEvent object is passed to every ZMouseMotionListener or ZMouseMotionAdapter object which registered to receive mouse motion events using the component's addMouseMotionListener method. (ZMouseMotionAdapter objects implement the ZMouseMotionListener interface.) Each such listener object gets a ZMouseEvent containing the mouse motion event.

Warning: Serialized and ZSerialized objects of this class will not be compatible with future Jazz releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Jazz. A future release of Jazz will provide support for long term persistence.

See Also:
ZMouseMotionAdapter, ZMouseMotionListener, Serialized Form

Fields inherited from class java.awt.event.MouseEvent
MOUSE_CLICKED, MOUSE_DRAGGED, MOUSE_ENTERED, MOUSE_EXITED, MOUSE_FIRST, MOUSE_LAST, MOUSE_MOVED, MOUSE_PRESSED, MOUSE_RELEASED
 
Fields inherited from class java.awt.event.InputEvent
ALT_GRAPH_MASK, ALT_MASK, BUTTON1_MASK, BUTTON2_MASK, BUTTON3_MASK, CTRL_MASK, META_MASK, SHIFT_MASK
 
Fields inherited from class java.awt.event.ComponentEvent
COMPONENT_FIRST, COMPONENT_HIDDEN, COMPONENT_LAST, COMPONENT_MOVED, COMPONENT_RESIZED, COMPONENT_SHOWN
 
Fields inherited from class java.awt.AWTEvent
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, consumed, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, id, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
protected ZMouseMotionEvent(int id, java.awt.event.MouseEvent e, ZSceneGraphPath path, ZSceneGraphPath mouseOverPath)
          Constructs a new ZMouse event from a Java MouseEvent.
 
Method Summary
 void dispatchTo(java.lang.Object listener)
          Calls appropriate method on the listener based on this events ID.
 java.lang.Class getListenerType()
          Returns the ZMouseMotionLister class.
 
Methods inherited from class edu.umd.cs.jazz.event.ZMouseEvent
createMouseEvent, getCurrentNode, getCurrentPath, getGrabNode, getGrabPath, getID, getLocalPoint, getLocalX, getLocalY, getNode, getPath, setSource
 
Methods inherited from class java.awt.event.MouseEvent
getClickCount, getPoint, getX, getY, isPopupTrigger, paramString, translatePoint
 
Methods inherited from class java.awt.event.InputEvent
consume, getModifiers, getWhen, isAltDown, isAltGraphDown, isConsumed, isControlDown, isMetaDown, isShiftDown
 
Methods inherited from class java.awt.event.ComponentEvent
getComponent
 
Methods inherited from class java.awt.AWTEvent
finalize, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.umd.cs.jazz.event.ZEvent
isConsumed
 

Constructor Detail

ZMouseMotionEvent

protected ZMouseMotionEvent(int id,
                            java.awt.event.MouseEvent e,
                            ZSceneGraphPath path,
                            ZSceneGraphPath mouseOverPath)
Constructs a new ZMouse event from a Java MouseEvent.
Parameters:
id - The event type (MOUSE_MOVED, MOUSE_DRAGGED)
e - The original Java mouse event
path - The path to use for getNode() and getPath()
mouseOverPath - The path to the current node under the mouse, this may be differnt then the normal path when in MOUSE_DRAGGED events.
Method Detail

dispatchTo

public void dispatchTo(java.lang.Object listener)
Calls appropriate method on the listener based on this events ID.
Overrides:
dispatchTo in class ZMouseEvent

getListenerType

public java.lang.Class getListenerType()
Returns the ZMouseMotionLister class.
Overrides:
getListenerType in class ZMouseEvent


Copyright © 2001 by University of Maryland, College Park, MD 20742, USA All rights reserved.