|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fest.swing.util.Modifiers
public final class Modifiers
Understands utility methods related to input modifiers. This class also maps modifier masks to key codes for the following modifiers:
| Method Summary | |
|---|---|
static boolean |
isModifier(int keyCode)
Indicates whether the given key code is a modifier. |
static int[] |
keysFor(int modifierMask)
Returns the key codes for the given modifier mask. |
static int |
maskFor(int keyCode)
Returns the modifier mask for the given key code. |
static int |
updateModifierWithKeyCode(int keyCode,
int modifierMask)
Updates the given modifier mask with the given key code, only if the given key code belongs to a modifier key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static int[] keysFor(int modifierMask)
modifierMask - the given modifier mask.
public static boolean isModifier(int keyCode)
keyCode - the given key code.
true if the given key code is a modifier, false otherwise.public static int maskFor(int keyCode)
keyCode - the given key code.
IllegalArgumentException - if the given key code is not a modifier.
public static int updateModifierWithKeyCode(int keyCode,
int modifierMask)
keyCode - the given key code.modifierMask - the given modifier mask.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||