|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.cockpit.modeler.util.InputState
public class InputState
Input state constants.
| Field Summary | |
|---|---|
static int |
ALT
Alt key down state |
static int |
ALT_GRAPH
Alt key down state |
static int |
BUTTON1
Mouse button 1 down state |
static int |
BUTTON2
Mouse button 2 down state |
static int |
BUTTON3
Mouse button 3 down state |
static int |
CTRL
Control key down state |
static int |
HOVER
Hover activation |
static int |
KEY_STATES
Keyboard modifier states |
static int |
META
Meta key down state |
static int |
MOUSE_STATES
Mouse button modifier states |
static int |
SHIFT
Shift key down state |
| Method Summary | |
|---|---|
static int |
getState()
Gets the curent input state. |
static boolean |
isAltDown()
Checks if the alt key is down. |
static boolean |
isAltGraphDown()
Checks if the alt graph key is down. |
static boolean |
isCtrlDown()
Checks if the control key is down. |
static boolean |
isLeftButtonDown()
Checks if the left mouse button is down. |
static boolean |
isMetaDown()
Checks if the meta key is down. |
static boolean |
isMiddleButtonDown()
Checks if the middle mouse button is down. |
static boolean |
isRightButtonDown()
Checks if the right mouse button is down. |
static boolean |
isShiftDown()
Checks if the shift key is down. |
static void |
setState(int newState)
Sets the curent input state. |
static void |
updateStateOnInputEvent(java.awt.event.InputEvent e)
Updates the given input state in case of a keyboard input event. |
static void |
updateStateOnMouseDownEvent(java.awt.event.MouseEvent e)
Updates the given input state in case of a mouse down event. |
static void |
updateStateOnMouseUpEvent(java.awt.event.MouseEvent e)
Updates the given input state in case of a mouse up event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SHIFT
public static final int CTRL
public static final int META
public static final int ALT
public static final int ALT_GRAPH
public static final int BUTTON1
public static final int BUTTON2
public static final int BUTTON3
public static final int HOVER
public static final int KEY_STATES
public static final int MOUSE_STATES
| Method Detail |
|---|
public static int getState()
public static void setState(int newState)
public static void updateStateOnInputEvent(java.awt.event.InputEvent e)
e - Input eventpublic static void updateStateOnMouseDownEvent(java.awt.event.MouseEvent e)
e - Mouse eventpublic static void updateStateOnMouseUpEvent(java.awt.event.MouseEvent e)
e - Mouse eventpublic static boolean isShiftDown()
public static boolean isCtrlDown()
public static boolean isMetaDown()
public static boolean isAltDown()
public static boolean isAltGraphDown()
public static boolean isLeftButtonDown()
public static boolean isMiddleButtonDown()
public static boolean isRightButtonDown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||