| Modifier and Type | Class and Description |
|---|---|
| public static interface | InputEvent.
Interface marking class of input types |
| public static interface | InputEvent.
Interface marking type of input devices |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | AUTOREPEAT_MASK
Event is caused by auto-repeat. |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | CONFINED_MASK
Pointer is confined, see |
| public static final int | |
| public static final int | INVISIBLE_MASK
Pointer is invisible, see |
| public static final int | |
| private final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public final int | getButtonDownCount()
Returns the number of pressed buttons by counting the set bits:
getBitCount(modifiers & BUTTONALL_MASK);
|
| public static final int | |
| public final short[] | Returns: Array of pressed mouse buttons [MouseEvent#BUTTON1 .. MouseEvent#BUTTON6].
If none is down, the resulting array is of length 0.See also |
| public final int | |
| public final StringBuilder | |
| public final boolean | |
| public final boolean | |
| public final boolean | isAnyButtonDown()
Returns true if at least one button is pressed, otherwise false:
0 != ( modifiers & BUTTONALL_MASK )
|
| public final boolean | |
| public final boolean | Returns: true if the given button is downthe button to test button)See also |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public final boolean | |
| public String | toString()
Overrides com. |
| public StringBuilder |
| ALT_GRAPH_MASK | back to summary |
|---|---|
| public static final int ALT_GRAPH_MASK | |
| ALT_MASK | back to summary |
|---|---|
| public static final int ALT_MASK | |
| AUTOREPEAT_MASK | back to summary |
|---|---|
| public static final int AUTOREPEAT_MASK Event is caused by auto-repeat. | |
| BUTTON1_MASK | back to summary |
|---|---|
| public static final int BUTTON1_MASK | |
| BUTTON2_MASK | back to summary |
|---|---|
| public static final int BUTTON2_MASK | |
| BUTTON3_MASK | back to summary |
|---|---|
| public static final int BUTTON3_MASK | |
| BUTTON4_MASK | back to summary |
|---|---|
| public static final int BUTTON4_MASK | |
| BUTTON5_MASK | back to summary |
|---|---|
| public static final int BUTTON5_MASK | |
| BUTTON6_MASK | back to summary |
|---|---|
| public static final int BUTTON6_MASK | |
| BUTTON7_MASK | back to summary |
|---|---|
| public static final int BUTTON7_MASK | |
| BUTTON8_MASK | back to summary |
|---|---|
| public static final int BUTTON8_MASK | |
| BUTTON9_MASK | back to summary |
|---|---|
| public static final int BUTTON9_MASK | |
| BUTTONALL_MASK | back to summary |
|---|---|
| public static final int BUTTONALL_MASK | |
| BUTTONLAST_MASK | back to summary |
|---|---|
| public static final int BUTTONLAST_MASK | |
| CONFINED_MASK | back to summary |
|---|---|
| public static final int CONFINED_MASK Pointer is confined, see | |
| CTRL_MASK | back to summary |
|---|---|
| public static final int CTRL_MASK | |
| INVISIBLE_MASK | back to summary |
|---|---|
| public static final int INVISIBLE_MASK Pointer is invisible, see | |
| META_MASK | back to summary |
|---|---|
| public static final int META_MASK | |
| modifiers | back to summary |
|---|---|
| private final int modifiers | |
| SHIFT_MASK | back to summary |
|---|---|
| public static final int SHIFT_MASK | |
| InputEvent | back to summary |
|---|---|
| protected InputEvent(final short eventType, final Object source, final long when, final int modifiers) | |
| getButtonDownCount | back to summary |
|---|---|
| public final int getButtonDownCount() Returns the number of pressed buttons by counting the set bits:
getBitCount(modifiers & BUTTONALL_MASK);
See also
| |
| getButtonMask | back to summary |
|---|---|
| public static final int getButtonMask(final int button) Returns the corresponding button mask for the given button.
In case the given button lies outside
of the valid range [ | |
| getButtonsDown | back to summary |
|---|---|
| public final short[] getButtonsDown() See also
| |
| getModifiers | back to summary |
|---|---|
| public final int getModifiers() Return the modifier bits of this event, e.g. see | |
| getModifiersString | back to summary |
|---|---|
| public final StringBuilder getModifiersString(StringBuilder sb) | |
| isAltDown | back to summary |
|---|---|
| public final boolean isAltDown()
| |
| isAltGraphDown | back to summary |
|---|---|
| public final boolean isAltGraphDown()
| |
| isAnyButtonDown | back to summary |
|---|---|
| public final boolean isAnyButtonDown() Returns true if at least one button is pressed, otherwise false:
0 != ( modifiers & BUTTONALL_MASK )
See also
| |
| isAutoRepeat | back to summary |
|---|---|
| public final boolean isAutoRepeat()
| |
| isButtonDown | back to summary |
|---|---|
| public final boolean isButtonDown(final int button) See also
| |
| isConfined | back to summary |
|---|---|
| public final boolean isConfined()
| |
| isControlDown | back to summary |
|---|---|
| public final boolean isControlDown()
| |
| isInvisible | back to summary |
|---|---|
| public final boolean isInvisible()
| |
| isMetaDown | back to summary |
|---|---|
| public final boolean isMetaDown()
| |
| isShiftDown | back to summary |
|---|---|
| public final boolean isShiftDown()
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides com. Doc from java. Returns a String representation of this EventObject. | |
| toString | back to summary |
|---|---|
| public StringBuilder toString(StringBuilder sb) Overrides com.
| |