public class MouseModifiers
extends java.lang.Object
MouseModifiers to be passed across processes. This is a value class.
This class is necessary as a flag informing the script generator to treat
MouseModifiers as descriptive expressions rather than as integer values.| Modifier and Type | Field and Description |
|---|---|
static int |
KEY_ALT
Exposes the
KEY_ALT bitmap literal. |
static int |
KEY_COMMAND
Exposes the
KEY_COMMAND bitmap literal. |
static int |
KEY_CTRL
Exposes the
KEY_CTRL bitmap literal. |
static int |
KEY_LEFT_ALT
Exposes the
KEY_LEFT_ALT bitmap literal. |
static int |
KEY_LEFT_CTRL
Exposes the
KEY_LEFT_CTRL bitmap literal. |
static int |
KEY_LEFT_SHIFT
Exposes the
KEY_LEFT_SHIFT bitmap literal. |
static int |
KEY_RIGHT_ALT
Exposes the
KEY_RIGHT_ALT bitmap literal. |
static int |
KEY_RIGHT_CTRL
Exposes the
KEY_RIGHT_CTRL bitmap literal. |
static int |
KEY_RIGHT_SHIFT
Exposes the
KEY_RIGHT_SHIFT bitmap literal. |
static int |
KEY_SHIFT
Exposes the
KEY_SHIFT bitmap literal. |
static int |
MOUSE_LEFT
Exposes the
MOUSE_LEFT bitmap literal. |
static int |
MOUSE_MIDDLE
Exposes the
MOUSE_MIDDLE bitmap literal. |
static int |
MOUSE_RIGHT
Exposes the
MOUSE_RIGHT bitmap literal. |
| Constructor and Description |
|---|
MouseModifiers(int bitmap)
Constructs a
MouseModifier class from an existing bitmap. |
| Modifier and Type | Method and Description |
|---|---|
static MouseModifiers |
create(int bitmap)
Creates a
MouseModifiers object quickly. |
boolean |
equals(java.lang.Object other)
Overloads the equals method so that only the bitmap is compared.
|
int |
getBitmap()
Accesses the modifier bitmap.
|
java.lang.String |
getModifiersText()
Returns the text of the modifiers
|
boolean |
isAlt()
Returns
true if the Alt key is selected. |
boolean |
isCommand()
Returns
true if the Command key is selected. |
boolean |
isCtrl()
Returns
true if the Ctrl key is selected. |
boolean |
isLeft()
Returns
true if the left mouse button is selected. |
boolean |
isMiddle()
Returns
true if the middle mouse button is selected. |
boolean |
isRight()
Returns
true if the right mouse button is selected. |
boolean |
isShift()
Returns
true if the Shift key is selected. |
static MouseModifiers |
left()
Creates a
MOUSE_LEFT object quickly. |
void |
setAlt()
Sets the Alt key as selected.
|
void |
setCommand()
Sets the Command key as selected.
|
void |
setCtrl()
Sets the Ctrl key as selected.
|
void |
setLeft()
Sets the left mouse button as selected.
|
void |
setLeftAlt()
Sets the Left Alt key as selected.
|
void |
setLeftCtrl()
Sets the Left Ctrl key as selected.
|
void |
setLeftShift()
Sets the Left Shift key as selected.
|
void |
setMiddle()
Sets the middle mouse button as selected.
|
void |
setRight()
Sets the right mouse button as selected.
|
void |
setRightAlt()
Sets the Right Alt key as selected.
|
void |
setRightCtrl()
Sets the Right Ctrl key as selected.
|
void |
setRightShift()
Sets the Right Shift key as selected.
|
void |
setShift()
Sets the Shift key as selected.
|
public static final int MOUSE_LEFT
MOUSE_LEFT bitmap literal.public static final int MOUSE_MIDDLE
MOUSE_MIDDLE bitmap literal.public static final int MOUSE_RIGHT
MOUSE_RIGHT bitmap literal.public static final int KEY_SHIFT
KEY_SHIFT bitmap literal.public static final int KEY_CTRL
KEY_CTRL bitmap literal.public static final int KEY_ALT
KEY_ALT bitmap literal.public static final int KEY_RIGHT_SHIFT
KEY_RIGHT_SHIFT bitmap literal.public static final int KEY_RIGHT_CTRL
KEY_RIGHT_CTRL bitmap literal.public static final int KEY_RIGHT_ALT
KEY_RIGHT_ALT bitmap literal.public static final int KEY_LEFT_SHIFT
KEY_LEFT_SHIFT bitmap literal.public static final int KEY_LEFT_CTRL
KEY_LEFT_CTRL bitmap literal.public static final int KEY_LEFT_ALT
KEY_LEFT_ALT bitmap literal.public static final int KEY_COMMAND
KEY_COMMAND bitmap literal.public MouseModifiers(int bitmap)
MouseModifier class from an existing bitmap.public int getBitmap()
public boolean isLeft()
true if the left mouse button is selected.public void setLeft()
public boolean isMiddle()
true if the middle mouse button is selected.public void setMiddle()
public boolean isRight()
true if the right mouse button is selected.public void setRight()
public boolean isCtrl()
true if the Ctrl key is selected.public void setCtrl()
public void setLeftCtrl()
public void setRightCtrl()
public boolean isAlt()
true if the Alt key is selected.public void setAlt()
public void setRightAlt()
public void setLeftAlt()
public boolean isShift()
true if the Shift key is selected.public void setShift()
public void setLeftShift()
public void setRightShift()
public java.lang.String getModifiersText()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic static MouseModifiers left()
MOUSE_LEFT object quickly.public static MouseModifiers create(int bitmap)
MouseModifiers object quickly.public boolean isCommand()
true if the Command key is selected.
Mac onlypublic void setCommand()