APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.awt.X11

public final Class XKeysym

extends Object
Class Inheritance
Imports
java.util.Hashtable, .Map, jdk.internal.misc.Unsafe, sun.util.logging.PlatformLogger

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private static final Map<Integer, Long>
pack-priv static XKeysym.Keysym2JavaKeycode
private static PlatformLogger
pack-priv static Hashtable<Long, XKeysym.Keysym2JavaKeycode>
pack-priv static Hashtable<Long, Character>
pack-priv static long
pack-priv static long
private static Unsafe
pack-priv static Hashtable<Long, Long>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static char
convertKeysym(long ks, int state)

pack-priv static XKeysym.Keysym2JavaKeycode
getJavaKeycode(long keysym)

Return java.awt.KeyEvent constant meaning (Java) keycode, derived from X keysym.

pack-priv static XKeysym.Keysym2JavaKeycode
getJavaKeycode(XKeyEvent ev)

Return java.awt.KeyEvent constant meaning (Java) keycode, derived from X Window KeyEvent.

pack-priv static int
private static long
getKeypadKeysym(XKeyEvent ev)

Get a keypad keysym derived from a keycode.

pack-priv static long
getKeysym(XKeyEvent ev)

Return keysym derived from a keycode and modifiers.

pack-priv static int
getLegacyJavaKeycodeOnly(XKeyEvent ev)

Return an integer java keycode apprx as it was before extending keycodes range.

public static long
getUppercaseAlphabetic(long keysym)

Return uppercase keysym correspondent to a given keysym.

public static boolean
pack-priv static long
pack-priv static long
pack-priv static long
pack-priv static long
pack-priv static long
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

javaKeycode2KeysymHashback to summary
private static final Map<Integer, Long> javaKeycode2KeysymHash
kanaLockback to summary
pack-priv static XKeysym.Keysym2JavaKeycode kanaLock
keyEventLogback to summary
private static PlatformLogger keyEventLog
keysym2JavaKeycodeHashback to summary
pack-priv static Hashtable<Long, XKeysym.Keysym2JavaKeycode> keysym2JavaKeycodeHash
keysym2UCSHashback to summary
pack-priv static Hashtable<Long, Character> keysym2UCSHash
keysym_lowercaseback to summary
pack-priv static long keysym_lowercase
keysym_uppercaseback to summary
pack-priv static long keysym_uppercase
unsafeback to summary
private static Unsafe unsafe
uppercaseHashback to summary
pack-priv static Hashtable<Long, Long> uppercaseHash

Constructor Detail

XKeysymback to summary
private XKeysym()

Method Detail

convertKeysymback to summary
public static char convertKeysym(long ks, int state)
getJavaKeycodeback to summary
pack-priv static XKeysym.Keysym2JavaKeycode getJavaKeycode(long keysym)

Return java.awt.KeyEvent constant meaning (Java) keycode, derived from X keysym. Some keysyms maps to more than one keycode, these would require extra processing.

getJavaKeycodeback to summary
pack-priv static XKeysym.Keysym2JavaKeycode getJavaKeycode(XKeyEvent ev)

Return java.awt.KeyEvent constant meaning (Java) keycode, derived from X Window KeyEvent. Algorithm is, extract via XKeycodeToKeysym a proper keysym according to Xlib spec rules and err exceptions, then search a java keycode in a table.

getJavaKeycodeOnlyback to summary
pack-priv static int getJavaKeycodeOnly(XKeyEvent ev)
getKeypadKeysymback to summary
private static long getKeypadKeysym(XKeyEvent ev)

Get a keypad keysym derived from a keycode. I do not check if this is a keypad event, I just presume it.

getKeysymback to summary
pack-priv static long getKeysym(XKeyEvent ev)

Return keysym derived from a keycode and modifiers. Usually an input method does this. However non-system input methods (e.g. Java IMs) do not. For rules, see "Xlib - C Language X Interface", MIT X Consortium Standard X Version 11, Release 6 Ch. 12.7 XXX TODO: or maybe not to do: process Mode Lock and therefore not only 0-th and 1-st but 2-nd and 3-rd keysyms for a keystroke.

getLegacyJavaKeycodeOnlyback to summary
pack-priv static int getLegacyJavaKeycodeOnly(XKeyEvent ev)

Return an integer java keycode apprx as it was before extending keycodes range. This call would ignore for instance XKB and process whatever is on the bottom of keysym stack. Result will not depend on actual locale, will differ between dual/multiple keyboard setup systems (e.g. English+Russian vs French+Russian) but will be someway compatible with old releases.

getUppercaseAlphabeticback to summary
public static long getUppercaseAlphabetic(long keysym)

Return uppercase keysym correspondent to a given keysym. If input keysym does not belong to any lower/uppercase pair, return -1.

isKPEventback to summary
public static boolean isKPEvent(XKeyEvent ev)
javaKeycode2Keysymback to summary
pack-priv static long javaKeycode2Keysym(int jkey)
xkeycode2keysymback to summary
pack-priv static long xkeycode2keysym(XKeyEvent ev, int ndx)
xkeycode2keysym_noxkbback to summary
pack-priv static long xkeycode2keysym_noxkb(XKeyEvent ev, int ndx)
xkeycode2keysym_xkbback to summary
pack-priv static long xkeycode2keysym_xkb(XKeyEvent ev, int ndx)
xkeycode2primary_keysymback to summary
pack-priv static long xkeycode2primary_keysym(XKeyEvent ev)
sun.awt.X11 back to summary

pack-priv final Class XKeysym.Keysym2JavaKeycode

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv int

Constructor Summary

AccessConstructor and Description
pack-priv
Keysym2JavaKeycode(int jk, int loc)

Method Summary

Modifier and TypeMethod and Description
pack-priv int
pack-priv int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

jkeycodeback to summary
pack-priv int jkeycode
keyLocationback to summary
pack-priv int keyLocation

Constructor Detail

Keysym2JavaKeycodeback to summary
pack-priv Keysym2JavaKeycode(int jk, int loc)

Method Detail

getJavaKeycodeback to summary
pack-priv int getJavaKeycode()
getKeyLocationback to summary
pack-priv int getKeyLocation()