public class DefaultCharBindingMap extends java.lang.Object implements CharBindingMap
CharBindingMap| Constructor and Description |
|---|
DefaultCharBindingMap()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChar(char c,
int key,
int modifiers)
Adds a char to supported.
|
int |
getCharKey(char c)
Returns the code of the primary key used to type a symbol.
|
int |
getCharModifiers(char c)
Returns the modifiers that should be pressed to type a symbol.
|
int[] |
getKeyAndModifiers(char c)
Returns key + modifiers pair.
|
char[] |
getSupportedChars()
Returns an array of all supported chars.
|
void |
removeChar(char c)
Removes a char from supported.
|
public int getCharKey(char c)
getCharKey in interface CharBindingMapc - Symbol code.CharBindingMap.getCharKey(char),
InputEventpublic int getCharModifiers(char c)
getCharModifiers in interface CharBindingMapc - Symbol code.CharBindingMap.getCharModifiers(char),
InputEventpublic int[] getKeyAndModifiers(char c)
c - Symbol code.public char[] getSupportedChars()
public void removeChar(char c)
c - Symbol code.public void addChar(char c,
int key,
int modifiers)
c - Symbol code.key - key code.modifiers - a combination of InputEvent MASK fields.