|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.graphics.interaction.MouseInfo
The MouseInfo class holds the information needed during an
interaction with the mouse.
| Field Summary | |
static int |
LEFT_BUTTON
constant that tells about the different mouse buttons |
static int |
MIDDLE_BUTTON
constant that tells about the different mouse buttons |
static int |
NO_BUTTON
constant that tells about the different mouse buttons |
static int |
RIGHT_BUTTON
constant that tells about the different mouse buttons |
| Constructor Summary | |
MouseInfo(long timestamp,
int button)
Constructor for MouseInfo with a coordinate given by
x and y and button identifier given by
button. |
|
MouseInfo(long timestamp,
int button,
int clicks)
Constructor for MouseInfo with a coordinate given by
x and y, button identifier given by
button and number of mouse clicks given by
clicks. |
|
MouseInfo(MouseInfo mouseInfo)
Copy-constructor for MouseInfo. |
|
| Method Summary | |
int |
getButtonType()
Returns the type of the used mouse button. |
int |
getClicks()
Returns the number of mouse clicks. |
long |
getTimestamp()
Returns the timestamp that tells about the time when the mouse interaction takes place. |
java.lang.String |
toString()
Returns a string-representation of this instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NO_BUTTON
public static final int LEFT_BUTTON
public static final int RIGHT_BUTTON
public static final int MIDDLE_BUTTON
| Constructor Detail |
public MouseInfo(long timestamp,
int button)
MouseInfo with a coordinate given by
x and y and button identifier given by
button.
timestamp - the timestamp of the mouse interactionbutton - the mouse button identifier
public MouseInfo(long timestamp,
int button,
int clicks)
MouseInfo with a coordinate given by
x and y, button identifier given by
button and number of mouse clicks given by
clicks.
timestamp - the timestamp of the mouse interactionbutton - the mouse button identifierclicks - number of mouse clickspublic MouseInfo(MouseInfo mouseInfo)
MouseInfo. Creates a new deep-copied
instance that is filled with the values from the given instance.
mouseInfo - the MouseInfo instance to copy from.| Method Detail |
public long getTimestamp()
public int getButtonType()
LEFT_BUTTON, RIGHT_BUTTON,
MIDDLE_BUTTON or NO_BUTTON
public int getClicks()
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||