org.zaval.lw.event
Class LwMouseMotionEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.zaval.lw.event.LwAWTEvent
              |
              +--org.zaval.lw.event.LwMouseEvent
                    |
                    +--org.zaval.lw.event.LwMouseMotionEvent
All Implemented Interfaces:
java.io.Serializable

public class LwMouseMotionEvent
extends LwMouseEvent

This class is used with light weight components to describe mouse motion events.

See Also:
Serialized Form

Field Summary
static int MOUSE_DRAGGED
          The mouse dragged event type.
static int MOUSE_ENDDRAGGED
          The mouse end dragged event type.
static int MOUSE_MOVED
          The mouse moved event type.
static int MOUSE_STARTDRAGGED
          The mouse start dragged event type.
 
Fields inherited from class org.zaval.lw.event.LwMouseEvent
ax, ay, clickCount, mask, MOUSE_CLICKED, MOUSE_ENTERED, MOUSE_EXITED, MOUSE_PRESSED, MOUSE_RELEASED, x, y
 
Fields inherited from class org.zaval.lw.event.LwAWTEvent
COMP_UID, CONT_UID, FOCUS_UID, id, KEY_UID, MOTION_UID, MOUSE_UID, WIN_UID
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
LwMouseMotionEvent(LwComponent target, int id, int ax, int ay, int mask)
          Constructs the event object with the specified source object, the event id, the absolute mouse pointer location and mask.
 
Method Summary
 int getUID()
          Gets the UID of the event.
 
Methods inherited from class org.zaval.lw.event.LwMouseEvent
getAbsX, getAbsY, getClickCount, getMask, getX, getY, reset
 
Methods inherited from class org.zaval.lw.event.LwAWTEvent
getID, getLwComponent
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MOUSE_DRAGGED

public static final int MOUSE_DRAGGED
The mouse dragged event type.

MOUSE_STARTDRAGGED

public static final int MOUSE_STARTDRAGGED
The mouse start dragged event type.

MOUSE_ENDDRAGGED

public static final int MOUSE_ENDDRAGGED
The mouse end dragged event type.

MOUSE_MOVED

public static final int MOUSE_MOVED
The mouse moved event type.
Constructor Detail

LwMouseMotionEvent

public LwMouseMotionEvent(LwComponent target,
                          int id,
                          int ax,
                          int ay,
                          int mask)
Constructs the event object with the specified source object, the event id, the absolute mouse pointer location and mask. The location defines x and y coordinates relatively the native parent component of the light weight source component.
Parameters:
target - the object where the event originated.
id - the specified event id.
ax - the x coordinate relatively the native parent component.
ay - the y coordinate relatively the native parent component.
mask - the specified mask. The mask can be used to check trigger keys status.
Method Detail

getUID

public int getUID()
Gets the UID of the event. The class uses LwAWTEvent.MOTION_UID as the event UID.
Overrides:
getUID in class LwMouseEvent
Returns:
an UID.


Copyright © Zaval Creative Engineering Group, 2000-2005.
http://www.zaval.org