@API(type=NOT_EXTENDABLE,
src=PUBLIC)
public abstract class AuthorInputEvent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ALT_GRAPH_PRESSED
This flag indicates that the AltGraph key was down when
the event occurred.
|
static int |
ALT_PRESSED
This flag indicates that the Alt key was down when
the event occurred.
|
boolean |
consumed
States whether or not the event has been consumed.
|
static int |
CTRL_PRESSED
This flag indicates that the Control key was down when the event
occurred.
|
static int |
META_PRESSED
This flag indicates that the Meta key was down when the event
occurred.
|
int |
modifiers
The state of the modifier mask at the time the input
event was fired.
|
static int |
SHIFT_PRESSED
This flag indicates that the Shift key was down when the event
occurred.
|
Constructor and Description |
---|
AuthorInputEvent(int modifiers)
Constructor for author input event.
|
Modifier and Type | Method and Description |
---|---|
void |
consume()
Set the consumed flag for the event.
|
int |
getModifiers() |
boolean |
isAltGraphPressed() |
boolean |
isAltPressed() |
boolean |
isCommandPressed()
Check if META is pressed on Mac or CTRL is pressed on Windows.
|
static boolean |
isCommandPressed(int modifiers)
Check if META is pressed on Mac or CTRL is pressed on Windows.
|
boolean |
isConsumed() |
boolean |
isCtrlPressed() |
boolean |
isMetaPressed() |
boolean |
isShiftPressed() |
public static final int SHIFT_PRESSED
public static final int CTRL_PRESSED
public static final int META_PRESSED
public static final int ALT_PRESSED
public static final int ALT_GRAPH_PRESSED
public final int modifiers
public boolean consumed
public AuthorInputEvent(int modifiers)
modifiers
- The modifiers.public void consume()
public final boolean isConsumed()
true
if the event was consumed.public boolean isShiftPressed()
true
if SHIFT key was pressed.public final boolean isCtrlPressed()
true
if CTRL key was pressed.public final boolean isAltPressed()
true
if ALT key was pressed.public final boolean isAltGraphPressed()
true
if ALT GR key was pressed.public final boolean isMetaPressed()
true
if META key was pressed.public int getModifiers()
public final boolean isCommandPressed()
true
if META is pressed on Mac or CTRL is pressed on Windows.public static boolean isCommandPressed(int modifiers)
modifiers
- The modifierstrue
if META is pressed on Mac or CTRL is pressed on Windows.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.