Methods Summary |
---|
public void | consume()
super.consume();
|
static int | extractExFlags(int modifiers)
int exFlags = modifiers & DOWN_MASKS;
if ((modifiers & SHIFT_MASK) != 0) {
exFlags |= SHIFT_DOWN_MASK;
}
if ((modifiers & CTRL_MASK) != 0) {
exFlags |= CTRL_DOWN_MASK;
}
if ((modifiers & META_MASK) != 0) {
exFlags |= META_DOWN_MASK;
}
if ((modifiers & ALT_MASK) != 0) {
exFlags |= ALT_DOWN_MASK;
}
if ((modifiers & ALT_GRAPH_MASK) != 0) {
exFlags |= ALT_GRAPH_DOWN_MASK;
}
if ((modifiers & BUTTON1_MASK) != 0) {
exFlags |= BUTTON1_DOWN_MASK;
}
if ((modifiers & BUTTON2_MASK) != 0) {
exFlags |= BUTTON2_DOWN_MASK;
}
if ((modifiers & BUTTON3_MASK) != 0) {
exFlags |= BUTTON3_DOWN_MASK;
}
return exFlags;
|
public int | getModifiers()
int modifiers = 0;
if ((modifiersEx & SHIFT_DOWN_MASK) != 0) {
modifiers |= SHIFT_MASK;
}
if ((modifiersEx & CTRL_DOWN_MASK) != 0) {
modifiers |= CTRL_MASK;
}
if ((modifiersEx & META_DOWN_MASK) != 0) {
modifiers |= META_MASK;
}
if ((modifiersEx & ALT_DOWN_MASK) != 0) {
modifiers |= ALT_MASK;
}
if ((modifiersEx & ALT_GRAPH_DOWN_MASK) != 0) {
modifiers |= ALT_GRAPH_MASK;
}
if ((modifiersEx & BUTTON1_DOWN_MASK) != 0) {
modifiers |= BUTTON1_MASK;
}
if ((modifiersEx & BUTTON2_DOWN_MASK) != 0) {
modifiers |= BUTTON2_MASK;
}
if ((modifiersEx & BUTTON3_DOWN_MASK) != 0) {
modifiers |= BUTTON3_MASK;
}
return modifiers;
|
public int | getModifiersEx()
return modifiersEx;
|
public static java.lang.String | getModifiersExText(int modifiers)
/*Ex*/
return MouseEvent.addMouseModifiersExText(
KeyEvent.getKeyModifiersExText(modifiers), modifiers);
|
public long | getWhen()
return when;
|
public boolean | isAltDown()
return ((modifiersEx & ALT_DOWN_MASK) != 0);
|
public boolean | isAltGraphDown()
return ((modifiersEx & ALT_GRAPH_DOWN_MASK) != 0);
|
public boolean | isConsumed()
return super.isConsumed();
|
public boolean | isControlDown()
return ((modifiersEx & CTRL_DOWN_MASK) != 0);
|
public boolean | isMetaDown()
return ((modifiersEx & META_DOWN_MASK) != 0);
|
public boolean | isShiftDown()
return ((modifiersEx & SHIFT_DOWN_MASK) != 0);
|
void | setModifiers(int modifiers)
modifiersEx = extractExFlags(modifiers);
|