org.apache.batik.gvt.event
public class GraphicsNodeKeyEvent extends GraphicsNodeInputEvent
Field Summary | |
---|---|
protected char | keyCharkeyChar is a valid unicode character
that is fired by a key or a key combination on
a keyboard. |
protected int | keyCode
The unique value assigned to each of the keys on the
keyboard. |
protected int | keyLocation
The key location. |
static int | KEY_PRESSED
The "key pressed" event. |
static int | KEY_RELEASED
The "key released" event. |
static int | KEY_TYPED
The "key typed" event. |
Constructor Summary | |
---|---|
GraphicsNodeKeyEvent(GraphicsNode source, int id, long when, int modifiers, int lockState, int keyCode, char keyChar, int keyLocation)
Constructs a new graphics node key event. |
Method Summary | |
---|---|
char | getKeyChar()
Return a character corresponding to physical key pressed.
|
int | getKeyCode()
Return the integer code for the physical key pressed. |
int | getKeyLocation()
Returns the key location. |
keyChar
is a valid unicode character
that is fired by a key or a key combination on
a keyboard.Parameters: source the graphics node where the event originated id the id of this event when the time the event occurred modifiers the modifier keys down while event occurred lockState bitmask indicating which key locks were activated keyCode the Java key code keyChar the generated character keyLocation the location of the key