|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--org.zaval.lw.event.LwAWTEvent | +--org.zaval.lw.event.LwMouseEvent
This class is used with light weight components to describe mouse events.
Field Summary | |
protected int |
ax
|
protected int |
ay
|
protected int |
clickCount
|
protected int |
mask
|
static int |
MOUSE_CLICKED
The mouse clicked event type. |
static int |
MOUSE_ENTERED
The mouse entered event type. |
static int |
MOUSE_EXITED
The mouse exited event type. |
static int |
MOUSE_PRESSED
The mouse pressed event type. |
static int |
MOUSE_RELEASED
The mouse released event type. |
protected int |
x
|
protected int |
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 | |
LwMouseEvent(LwComponent target,
int id,
int ax,
int ay,
int mask,
int clickCount)
Constructs the event object with the specified source object, the event id, the absolute mouse pointer location, mask and click count. |
Method Summary | |
int |
getAbsX()
Gets the x coordinate of the mouse pointer relatively the desktop parent component. |
int |
getAbsY()
Gets the y coordinate of the mouse pointer relatively the desktop parent component. |
int |
getClickCount()
Gets the number of consecutive mouse clicks. |
int |
getMask()
Gets the mask. |
int |
getUID()
Gets the UID of the event. |
int |
getX()
Gets the x coordinate of the mouse pointer relatively the source component. |
int |
getY()
Gets the y coordinate of the mouse pointer relatively the source component. |
void |
reset(LwComponent target,
int id,
int ax,
int ay,
int mask,
int clickCount)
|
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 |
public static final int MOUSE_CLICKED
public static final int MOUSE_PRESSED
public static final int MOUSE_RELEASED
public static final int MOUSE_ENTERED
public static final int MOUSE_EXITED
protected int x
protected int y
protected int ax
protected int ay
protected int mask
protected int clickCount
Constructor Detail |
public LwMouseEvent(LwComponent target, int id, int ax, int ay, int mask, int clickCount)
target
- the object where the event originated.id
- the specified event id.ax
- the x coordinate relatively the desktop parent component.ay
- the y coordinate relatively the desktop parent component.mask
- the specified mask. The mask can be used to check trigger keys
status.clickCount
- the number of consecutive clicks.Method Detail |
public void reset(LwComponent target, int id, int ax, int ay, int mask, int clickCount)
public int getMask()
public int getAbsX()
public int getAbsY()
public int getX()
public int getY()
public int getUID()
getUID
in class LwAWTEvent
public int getClickCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |