public class InputTrigger extends Object
Behaviour
.
Parsing String in getFromString(String)
borrows heavily from AWTKeyStroke
.
Modifier and Type | Field and Description |
---|---|
static int |
ALT_DOWN_MASK |
static int |
ALT_GRAPH_DOWN_MASK |
static int |
BUTTON1_DOWN_MASK |
static int |
BUTTON2_DOWN_MASK |
static int |
BUTTON3_DOWN_MASK |
static int |
CTRL_DOWN_MASK |
static int |
DOUBLE_CLICK_MASK |
static int |
IGNORE_MASK |
static int |
META_DOWN_MASK |
static InputTrigger |
NOT_MAPPED |
static int |
SCROLL_MASK |
static int |
SHIFT_DOWN_MASK |
static int |
WIN_DOWN_MASK |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static InputTrigger |
getFromString(String s) |
KeyStroke |
getKeyStroke() |
int |
getMask()
Get the modifier mask for this trigger.
|
gnu.trove.TIntCollection |
getPressedKeys() |
int |
hashCode() |
boolean |
isKeyStroke() |
boolean |
isKeyTriggered() |
boolean |
matches(int mask,
gnu.trove.set.TIntSet keys) |
boolean |
matches(int mask,
gnu.trove.set.TIntSet keys,
gnu.trove.set.TIntSet tmp) |
boolean |
matchesSubset(int mask,
gnu.trove.set.TIntSet keys) |
boolean |
matchesSubset(int mask,
gnu.trove.set.TIntSet keys,
gnu.trove.set.TIntSet tmp) |
String |
toString() |
public static final int SHIFT_DOWN_MASK
public static final int CTRL_DOWN_MASK
public static final int META_DOWN_MASK
public static final int ALT_DOWN_MASK
public static final int BUTTON1_DOWN_MASK
public static final int BUTTON2_DOWN_MASK
public static final int BUTTON3_DOWN_MASK
public static final int ALT_GRAPH_DOWN_MASK
public static final int DOUBLE_CLICK_MASK
public static final int SCROLL_MASK
public static final int WIN_DOWN_MASK
public static final int IGNORE_MASK
public static final InputTrigger NOT_MAPPED
public static InputTrigger getFromString(String s) throws IllegalArgumentException
IllegalArgumentException
public int getMask()
public gnu.trove.TIntCollection getPressedKeys()
public boolean isKeyTriggered()
public boolean isKeyStroke()
public KeyStroke getKeyStroke()
public boolean matches(int mask, gnu.trove.set.TIntSet keys)
public boolean matches(int mask, gnu.trove.set.TIntSet keys, gnu.trove.set.TIntSet tmp)
public boolean matchesSubset(int mask, gnu.trove.set.TIntSet keys)
public boolean matchesSubset(int mask, gnu.trove.set.TIntSet keys, gnu.trove.set.TIntSet tmp)
Copyright © 2015–2022 SciJava. All rights reserved.