| java.lang.Object com.ibm.richtext.textpanel.KeyRemap
All known Subclasses: com.ibm.richtext.textpanel.HebrewTransliteration, com.ibm.richtext.textpanel.IsraelNikudKeyboard, com.ibm.richtext.textpanel.ThaiKeyRemap, com.ibm.richtext.textpanel.HackArabicTransliteration, com.ibm.richtext.textpanel.ArabicTransliteration,
KeyRemap | public class KeyRemap (Code) | | KeyRemap maps keys on a standard US keyboard to characters
in other alphabets. Currently, mappings to Arabic, Hebrew
and Thai are supported. In the future, clients may be
to define their own mappings by subclassing this class.
See Also: TextPanel.setKeyRemap |
Constructor Summary | |
protected | KeyRemap() Create a new KeyRemap. |
Method Summary | |
public static KeyRemap | getArabicTransliteration() Return a KeyRemap which maps keys to
characters in the Arabic alphabet, using a simple transliteration. | public static KeyRemap | getHebrewTransliteration() Return a KeyRemap which maps keys to
characters in the Hebrew alphabet, using a simple transliteration. | public static KeyRemap | getIdentityRemap() Return a KeyRemap which maps every character to itself. | public static KeyRemap | getIsraelNikud() Return a KeyRemap which emulates a standard Hebrew keyboard. | public static KeyRemap | getThaiKetmanee() Return a KeyRemap which emulates a Thai Ketmanee keyboard. | char | remap(char c) This method returns the character on the simulated keyboard
which is (most likely) generated by typing the character c
on the actual keyboard. | char | remap(KeyEvent keyEvent) Return the character on the simulated keyboard
which keyEvent generates. |
KeyRemap | protected KeyRemap()(Code) | | Create a new KeyRemap.
|
getArabicTransliteration | public static KeyRemap getArabicTransliteration()(Code) | | Return a KeyRemap which maps keys to
characters in the Arabic alphabet, using a simple transliteration.
|
getHebrewTransliteration | public static KeyRemap getHebrewTransliteration()(Code) | | Return a KeyRemap which maps keys to
characters in the Hebrew alphabet, using a simple transliteration.
|
getIdentityRemap | public static KeyRemap getIdentityRemap()(Code) | | Return a KeyRemap which maps every character to itself.
|
getIsraelNikud | public static KeyRemap getIsraelNikud()(Code) | | Return a KeyRemap which emulates a standard Hebrew keyboard.
|
getThaiKetmanee | public static KeyRemap getThaiKetmanee()(Code) | | Return a KeyRemap which emulates a Thai Ketmanee keyboard.
|
remap | char remap(char c)(Code) | | This method returns the character on the simulated keyboard
which is (most likely) generated by typing the character c
on the actual keyboard. For greater accuracy, use the remap
method which takes a KeyEvent, since it can take modifier
keys into account.
the character on the simulated keyboard which wouldresult from the key combination which produced thegiven character on the actual keyboard |
remap | char remap(KeyEvent keyEvent)(Code) | | Return the character on the simulated keyboard
which keyEvent generates.
the character on the simulated keyboard generated bykeyEvent |
|
|