|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.gui.text.KeyMap
public class KeyMap
Maps key presses with specific modifier combinations to editor commands. These are used by the text-entry components.
| Field Summary | |
|---|---|
static int |
ANY_MODIFIER
A modifiers code that if specified, will default any keyCode to the specified command unless a specific modifier mapping is set. |
static int |
NO_MAPPING
A command constant indicating no mapping exists for a particular modifier and key code combination. |
| Constructor Summary | |
|---|---|
KeyMap()
|
|
| Method Summary | |
|---|---|
void |
addMapping(int modifiers,
int keyCode,
int command)
Adds a mapping for the specified modifier and key code combination to the specified command. |
int |
lookupMapping(int modifiers,
int keyCode)
Looks up and returns the command associated with the specified set of modifiers and key code. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_MAPPING
public static final int ANY_MODIFIER
| Constructor Detail |
|---|
public KeyMap()
| Method Detail |
|---|
public void addMapping(int modifiers,
int keyCode,
int command)
public int lookupMapping(int modifiers,
int keyCode)
NO_MAPPING if no
matching mapping can be found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||