|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object hermes.postoffice.MouseMessage
public class MouseMessage
Message representing mouse actions.
Type of MouseMessage determined by the button pressed.
Subscription to a mouse button gets you press, release, and drag events; subscription to POConstants.Button.NO gets you mouse moved messages.
Constructor Summary | |
---|---|
MouseMessage(POCodes.Button buttonClicked,
POCodes.Click actionType,
int x,
int y)
Creates a new MouseMessage. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Checks for equality of MouseMessages by comparing mouse button. |
POCodes.Click |
getAction()
Gets the action designated by the message. |
POCodes.Button |
getButton()
Gets the button pressed on the mouse. |
PVector |
getPosition()
Gets position of mouse as PVector |
int |
getX()
Gets the x location of the mouse |
int |
getY()
Gets the y location of the mouse |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MouseMessage(POCodes.Button buttonClicked, POCodes.Click actionType, int x, int y)
buttonClicked
- x
- y
- Method Detail |
---|
public POCodes.Button getButton()
public POCodes.Click getAction()
public int getX()
public int getY()
public PVector getPosition()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |