public class KeyStrokeMap extends Object implements KeyStrokeMapProvider
VKNAME.MOD=VALUE
Constructor and Description |
---|
KeyStrokeMap() |
Modifier and Type | Method and Description |
---|---|
static char |
getChar(KeyStroke ks)
Given a keycode-based KeyStroke, return the equivalent character.
|
protected static String |
getFilename(String base)
Convert a String containing a unique identifier for the map into a
unique filename.
|
static KeyStroke |
getKeyStroke(char ch)
Return the keycode-based KeyStroke corresponding to the given
character, as best we can guess it, or null if we don't know how to
generate it.
|
protected static String[] |
getMapDescriptions() |
protected static String[] |
getMapNames() |
Map |
loadCharacterMap()
Load a map for the current locale to translate a character into a
corresponding virtual keycode-based KeyStroke.
|
Map |
loadKeyStrokeMap()
Load a map for the current locale to translate a virtual keycode into
a character-based KeyStroke.
|
static void |
main(String[] args)
Return currently available locales.
|
public static KeyStroke getKeyStroke(char ch)
public static char getChar(KeyStroke ks)
public Map loadCharacterMap()
loadCharacterMap
in interface KeyStrokeMapProvider
public Map loadKeyStrokeMap()
loadKeyStrokeMap
in interface KeyStrokeMapProvider
protected static String getFilename(String base)
protected static String[] getMapNames()
protected static String[] getMapDescriptions()
public static void main(String[] args)
Abbot is hosted on