public abstract class InputEvent extends NEWTEvent
Modifier and Type | Field and Description |
---|---|
static int |
ALT_GRAPH_MASK |
static int |
ALT_MASK |
static int |
BUTTON1_MASK |
static int |
BUTTON2_MASK |
static int |
BUTTON3_MASK |
static int |
BUTTON4_MASK |
static int |
BUTTON5_MASK |
static int |
BUTTON6_MASK |
static int |
CONFINED_MASK |
static Object |
consumedTag
Object when attached via
NEWTEvent.setAttachment(Object) marks the event consumed,
ie. |
static int |
CTRL_MASK |
static int |
INVISIBLE_MASK |
static int |
META_MASK |
static int |
SHIFT_MASK |
Modifier and Type | Method and Description |
---|---|
static int |
getButtonMask(int button)
Returns the corresponding button mask for the given button.
|
int[] |
getButtonsDown() |
int |
getModifiers() |
boolean |
isAltDown() |
boolean |
isAltGraphDown() |
boolean |
isButtonDown(int button) |
boolean |
isConfined() |
boolean |
isControlDown() |
boolean |
isInvisible() |
boolean |
isMetaDown() |
boolean |
isShiftDown() |
String |
toString() |
getAttachment, getEventType, getWhen, isSystemEvent, setAttachment, toHexString, toHexString
getSource
public 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 BUTTON4_MASK
public static final int BUTTON5_MASK
public static final int BUTTON6_MASK
public static final int CONFINED_MASK
public static final int INVISIBLE_MASK
public static final Object consumedTag
NEWTEvent.setAttachment(Object)
marks the event consumed,
ie. stops propagating the event any further to the event listener.public static final int getButtonMask(int button)
In case the given button lies outside
of the valid range [MouseEvent.BUTTON1
.. MouseEvent.BUTTON6
],
null is returned.
public int getModifiers()
public boolean isAltDown()
public boolean isAltGraphDown()
public boolean isControlDown()
public boolean isMetaDown()
public boolean isShiftDown()
public boolean isConfined()
public boolean isInvisible()
public final int[] getButtonsDown()
MouseEvent.BUTTON1
.. MouseEvent.BUTTON6
].
If none is down, the resulting array is of length 0.public final boolean isButtonDown(int button)
Copyright 2010 JogAmp Community.