GraphicsNodeKeyEvent, GraphicsNodeMouseEvent, GraphicsNodeMouseWheelEventpublic abstract class GraphicsNodeInputEvent extends GraphicsNodeEvent
| Modifier and Type | Field | Description |
|---|---|---|
static int |
ALT_GRAPH_MASK |
The alt-graph key modifier constant.
|
static int |
ALT_MASK |
The alt key modifier constant.
|
static int |
BUTTON1_MASK |
The mouse button1 modifier constant.
|
static int |
BUTTON2_MASK |
The mouse button2 modifier constant.
|
static int |
BUTTON3_MASK |
The mouse button3 modifier constant.
|
static int |
CAPS_LOCK_MASK |
The caps lock constant.
|
static int |
CTRL_MASK |
The control key modifier constant.
|
static int |
KANA_LOCK_MASK |
The kana lock constant.
|
static int |
META_MASK |
The meta key modifier constant.
|
static int |
NUM_LOCK_MASK |
The num lock constant.
|
static int |
SCROLL_LOCK_MASK |
The scroll lock constant.
|
static int |
SHIFT_MASK |
The shift key modifier constant.
|
id| Modifier | Constructor | Description |
|---|---|---|
protected |
GraphicsNodeInputEvent(GraphicsNode source,
int id,
long when,
int modifiers,
int lockState) |
Constructs a new graphics node input event.
|
protected |
GraphicsNodeInputEvent(GraphicsNode source,
java.awt.event.InputEvent evt,
int lockState) |
Constructs a new graphics node input event from an AWT InputEvent.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getLockState() |
Returns the lock state flags for this event.
|
int |
getModifiers() |
Returns the modifiers flag for this event.
|
long |
getWhen() |
Returns the timestamp of when this event occurred.
|
boolean |
isAltDown() |
Returns whether or not the Alt modifier is down on this event.
|
boolean |
isAltGraphDown() |
Returns whether or not the Alt-Graph modifier is down on this event.
|
boolean |
isControlDown() |
Returns whether or not the Control modifier is down on this event.
|
boolean |
isMetaDown() |
Returns whether or not the Meta modifier is down on this event.
|
boolean |
isShiftDown() |
Returns whether or not the Shift modifier is down on this event.
|
consume, getGraphicsNode, getID, isConsumedpublic static final int SHIFT_MASK
public static final int CTRL_MASK
public static final int META_MASK
public static final int ALT_MASK
public static final int ALT_GRAPH_MASK
public static final int BUTTON1_MASK
public static final int BUTTON2_MASK
public static final int BUTTON3_MASK
public static final int CAPS_LOCK_MASK
public static final int NUM_LOCK_MASK
public static final int SCROLL_LOCK_MASK
public static final int KANA_LOCK_MASK
protected GraphicsNodeInputEvent(GraphicsNode source, int id, long when, int modifiers, int lockState)
source - the graphics node where the event originatedid - the id of this eventwhen - the time the event occurredmodifiers - the modifier keys down while event occurredprotected GraphicsNodeInputEvent(GraphicsNode source, java.awt.event.InputEvent evt, int lockState)
source - the graphics node where the event originatedevt - the AWT InputEvent triggering this event's creationpublic boolean isShiftDown()
public boolean isControlDown()
public boolean isMetaDown()
public boolean isAltDown()
public boolean isAltGraphDown()
public long getWhen()
public int getModifiers()
public int getLockState()
Copyright ? 2018 Apache Software Foundation. All Rights Reserved.