public class TICKeyEvent extends TICInputEvent
source
Constructor and Description |
---|
TICKeyEvent(TICComponent source,
KeyEvent swingEvent) |
TICKeyEvent(TICComponent source,
KeyEvent swtEvent) |
TICKeyEvent(TICComponent source,
long time,
int modifiers,
int keyCode,
int keyLocation,
char keyCharacter) |
Modifier and Type | Method and Description |
---|---|
static int |
convertSWTKeyCode(int swtCode) |
static int |
convertSWTKeyLocation(int swtLocation) |
char |
getKeyCharacter() |
int |
getKeyCode() |
int |
getKeyLocation()
Returns the location of the key that was pressed.
|
convertSWTEventTime, convertSWTStateMask, getModifiers, getSource, getTime, isAltDown, isAltGraphDown, isControlDown, isMenuShortcutKeyDown, isMetaDown, isMouseButton1Down, isMouseButton2Down, isMouseButton3Down, isShiftDown
toString
public TICKeyEvent(TICComponent source, long time, int modifiers, int keyCode, int keyLocation, char keyCharacter)
public TICKeyEvent(TICComponent source, KeyEvent swingEvent)
public TICKeyEvent(TICComponent source, KeyEvent swtEvent)
public static int convertSWTKeyCode(int swtCode)
public static int convertSWTKeyLocation(int swtLocation)
public int getKeyCode()
public int getKeyLocation()
KeyEvent.KEY_LOCATION_STANDARD
,
KeyEvent.KEY_LOCATION_LEFT
, KeyEvent.KEY_LOCATION_RIGHT
, KeyEvent.KEY_LOCATION_NUMPAD
)public char getKeyCharacter()