public abstract class KyEvent extends InputEvent
It is named KyEvent
rather than KeyEvent
to avoid name
clashes with the KeyEvent
hierarchy.
Constructor and Description |
---|
KyEvent(Display<?> display,
InputModifiers modifiers,
int x,
int y,
char character,
KeyCode code) |
Modifier and Type | Method and Description |
---|---|
Accelerator |
getAccelerator()
Converts the key event into a corresponding accelerator.
|
char |
getCharacter() |
KeyCode |
getCode() |
String |
toString() |
getModifiers, getX, getY
getDisplay
consume, dumpStack, getCallingThread, getStackTrace, isConsumed, setCallingThread, setConsumed
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setContext
public KyEvent(Display<?> display, InputModifiers modifiers, int x, int y, char character, KeyCode code)
public char getCharacter()
public KeyCode getCode()
public Accelerator getAccelerator()
public String toString()
toString
in class InputEvent
Copyright © 2015–2022 SciJava. All rights reserved.