|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.generic.util.ModifierConfig
ModifierConfig
| Nested Class Summary | |
static class |
ModifierConfig.OperationKey
A singleton class representing the keys for the modifier configuration |
| Field Summary | |
static ModifierConfig.OperationKey |
COPY_ON_MOVE
Constant for Copy-on-move operation |
static int |
MODIFIER_MASK
Mask for all key modifiers (e.g. for masking out mouse button modifiers) |
static ModifierConfig.OperationKey |
TOGGLE_SELECTION
Constant for Toggle-selection operation |
static ModifierConfig.OperationKey |
ZOOM_TO_RECTANGLE
Constant for Zoom-to-rectangle operation |
| Method Summary | |
static int |
getModifier(ModifierConfig.OperationKey operationKey)
Retrieves the modifier of the given operation |
static KeyStroke |
keyForModifier(int modifier)
Returns a KeyStroke representing the modifier mask. |
static boolean |
matches(ModifierConfig.OperationKey operationKey,
int modifier)
Returns true, if the given modifier is a valid trigger for the given operation |
static int |
modifierForKey(KeyStroke key)
Returns a modifier representing the SHIFT, CTRL and ALT components of a KeyStroke. |
static void |
setModifier(ModifierConfig.OperationKey operationKey,
int modifier)
Sets the modifier for the given operation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int MODIFIER_MASK
public static final ModifierConfig.OperationKey COPY_ON_MOVE
public static final ModifierConfig.OperationKey TOGGLE_SELECTION
public static final ModifierConfig.OperationKey ZOOM_TO_RECTANGLE
| Method Detail |
public static final boolean matches(ModifierConfig.OperationKey operationKey,
int modifier)
operationKey - The key of the operationmodifier - The modifier of the pressed keys
public static final int getModifier(ModifierConfig.OperationKey operationKey)
operationKey - The operation to get the modifier for
public static final void setModifier(ModifierConfig.OperationKey operationKey,
int modifier)
operationKey - The operation to get the modifier formodifier - The modifier to setpublic static KeyStroke keyForModifier(int modifier)
KeyStroke representing the modifier mask.
modifier - The modifier
KeyStroke representing the modifier mask.public static int modifierForKey(KeyStroke key)
KeyStroke.
key - The key
KeyStroke.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||