|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
org.apache.batik.gvt.event.GraphicsNodeEvent
org.apache.batik.gvt.event.GraphicsNodeInputEvent
org.apache.batik.gvt.event.GraphicsNodeKeyEvent
public class GraphicsNodeKeyEvent
An event which indicates that a keystroke occurred in a graphics node.
| Field Summary | |
|---|---|
static int |
KEY_PRESSED
The "key pressed" event. |
static int |
KEY_RELEASED
The "key released" event. |
static int |
KEY_TYPED
The "key typed" event. |
protected char |
keyChar
keyChar 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. |
| Fields inherited from class org.apache.batik.gvt.event.GraphicsNodeInputEvent |
|---|
ALT_GRAPH_MASK, ALT_MASK, BUTTON1_MASK, BUTTON2_MASK, BUTTON3_MASK, CAPS_LOCK_MASK, CTRL_MASK, KANA_LOCK_MASK, META_MASK, NUM_LOCK_MASK, SCROLL_LOCK_MASK, SHIFT_MASK |
| Fields inherited from class org.apache.batik.gvt.event.GraphicsNodeEvent |
|---|
id |
| Fields inherited from class java.util.EventObject |
|---|
source |
| 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. |
| Methods inherited from class org.apache.batik.gvt.event.GraphicsNodeInputEvent |
|---|
getLockState, getModifiers, getWhen, isAltDown, isAltGraphDown, isControlDown, isMetaDown, isShiftDown |
| Methods inherited from class org.apache.batik.gvt.event.GraphicsNodeEvent |
|---|
consume, getGraphicsNode, getID, isConsumed |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int KEY_TYPED
public static final int KEY_PRESSED
public static final int KEY_RELEASED
protected int keyCode
protected char keyChar
keyChar is a valid unicode character
that is fired by a key or a key combination on
a keyboard.
protected int keyLocation
| Constructor Detail |
|---|
public GraphicsNodeKeyEvent(GraphicsNode source,
int id,
long when,
int modifiers,
int lockState,
int keyCode,
char keyChar,
int keyLocation)
source - the graphics node where the event originatedid - the id of this eventwhen - the time the event occurredmodifiers - the modifier keys down while event occurredlockState - bitmask indicating which key locks were activatedkeyCode - the Java key codekeyChar - the generated characterkeyLocation - the location of the key| Method Detail |
|---|
public int getKeyCode()
public char getKeyChar()
public int getKeyLocation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||