public class KeyStrokeMap extends java.lang.Object implements KeyStrokeMapProvider
VKNAME.MOD=VALUE| Constructor and Description |
|---|
KeyStrokeMap() |
| Modifier and Type | Method and Description |
|---|---|
static char |
getChar(javax.swing.KeyStroke ks)
Given a keycode-based KeyStroke, return the equivalent character.
|
protected static java.lang.String |
getFilename(java.lang.String base)
Convert a String containing a unique identifier for the map into a
unique filename.
|
static javax.swing.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 java.lang.String[] |
getMapDescriptions() |
protected static java.lang.String[] |
getMapNames() |
java.util.Map |
loadCharacterMap()
Load a map for the current locale to translate a character into a
corresponding virtual keycode-based KeyStroke.
|
java.util.Map |
loadKeyStrokeMap()
Load a map for the current locale to translate a virtual keycode into
a character-based KeyStroke.
|
static void |
main(java.lang.String[] args)
Return currently available locales.
|
public static javax.swing.KeyStroke getKeyStroke(char ch)
public static char getChar(javax.swing.KeyStroke ks)
public java.util.Map loadCharacterMap()
loadCharacterMap in interface KeyStrokeMapProviderpublic java.util.Map loadKeyStrokeMap()
loadKeyStrokeMap in interface KeyStrokeMapProviderprotected static java.lang.String getFilename(java.lang.String base)
protected static java.lang.String[] getMapNames()
protected static java.lang.String[] getMapDescriptions()
public static void main(java.lang.String[] args)
Abbot is hosted on