public static class ActionMapper.ComponentState
extends java.lang.Object
Collects the state of an AWT Component
.
The fields are set automatically by the ActionMapper
event
handlers and are available for use by action handlers. There is no
explicit synchronization; the fields are intended to be confined to the
AWT event thread.
Modifier and Type | Field and Description |
---|---|
boolean |
altDown
current status of the indicated key
|
boolean |
button1Down
current status of the indicated button
|
boolean |
button2Down
current status of the indicated button
|
boolean |
button3Down
current status of the indicated button
|
boolean |
ctrlDown
current status of the indicated key
|
int |
height
component dimension, negative if none
|
int |
mousePressedX
coord of most recent mouse press, negative if none
|
int |
mousePressedY
coord of most recent mouse press, negative if none
|
int |
mouseWheelClicks
Clicks of a mouse wheel event, negative if none.
|
int |
mouseX
coord of most recent mouse event, negative if none
|
int |
mouseY
coord of most recent mouse event, negative if none
|
boolean |
shiftDown
current status of the indicated key
|
int |
width
component dimension, negative if none
|
Constructor and Description |
---|
ActionMapper.ComponentState() |
Modifier and Type | Method and Description |
---|---|
void |
dump()
dump(PrintStream) to System.out |
void |
dump(java.io.PrintStream s)
dumps all fields
|
protected void |
reset()
resets all fields
|
public boolean shiftDown
public boolean ctrlDown
public boolean altDown
public boolean button1Down
public boolean button2Down
public boolean button3Down
public int width
public int height
public int mousePressedX
public int mousePressedY
public int mouseX
public int mouseY
public int mouseWheelClicks
Clicks of a mouse wheel event, negative if none.
This will only be non-negative while handling the corresponding wheel event.
public void dump(java.io.PrintStream s)
public void dump()
dump(PrintStream)
to System.outprotected void reset()