Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.batik.gvt.event
Class GraphicsNodeKeyEvent  view GraphicsNodeKeyEvent download GraphicsNodeKeyEvent.java

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.apache.batik.gvt.event.GraphicsNodeEvent
          extended byorg.apache.batik.gvt.event.GraphicsNodeInputEvent
              extended byorg.apache.batik.gvt.event.GraphicsNodeKeyEvent
All Implemented Interfaces:
java.io.Serializable

public class GraphicsNodeKeyEvent
extends GraphicsNodeInputEvent

An event which indicates that a keystroke occurred in a graphics node.

Version:
$Id: GraphicsNodeKeyEvent.java,v 1.7 2005/02/22 09:13:02 cam Exp $

Field Summary
(package private) static int KEY_FIRST
           
static int KEY_PRESSED
          The "key pressed" event.
static int KEY_RELEASED
          The "key released" event.
static int KEY_TYPED
          The "key typed" event.
(package private)  char keyChar
          keyChar is a valid unicode character that is fired by a key or a key combination on a keyboard.
(package private)  int keyCode
          The unique value assigned to each of the keys on the keyboard.
 
Fields inherited from class org.apache.batik.gvt.event.GraphicsNodeInputEvent
ALT_GRAPH_MASK, ALT_MASK, BUTTON1_MASK, BUTTON2_MASK, BUTTON3_MASK, CTRL_MASK, META_MASK, modifiers, SHIFT_MASK, when
 
Fields inherited from class org.apache.batik.gvt.event.GraphicsNodeEvent
id
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
GraphicsNodeKeyEvent(org.apache.batik.gvt.GraphicsNode source, int id, long when, int modifiers, int keyCode, char keyChar)
          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.
 
Methods inherited from class org.apache.batik.gvt.event.GraphicsNodeInputEvent
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

KEY_FIRST

static final int KEY_FIRST
See Also:
Constant Field Values

KEY_TYPED

public static final int KEY_TYPED
The "key typed" event. This event is generated when a character is entered. In the simplest case, it is produced by a single key press. Often, however, characters are produced by series of key presses, and the mapping from key pressed events to key typed events may be many-to-one or many-to-many.

See Also:
Constant Field Values

KEY_PRESSED

public static final int KEY_PRESSED
The "key pressed" event. This event is generated when a key is pushed down.

See Also:
Constant Field Values

KEY_RELEASED

public static final int KEY_RELEASED
The "key released" event. This event is generated when a key is let up.

See Also:
Constant Field Values

keyCode

int keyCode
The unique value assigned to each of the keys on the keyboard. There is a common set of key codes that can be fired by most keyboards. The symbolic name for a key code should be used rather than the code value itself.


keyChar

char keyChar
keyChar is a valid unicode character that is fired by a key or a key combination on a keyboard.

Constructor Detail

GraphicsNodeKeyEvent

public GraphicsNodeKeyEvent(org.apache.batik.gvt.GraphicsNode source,
                            int id,
                            long when,
                            int modifiers,
                            int keyCode,
                            char keyChar)
Constructs a new graphics node key event.

Method Detail

getKeyCode

public int getKeyCode()
Return the integer code for the physical key pressed. Not localized.


getKeyChar

public char getKeyChar()
Return a character corresponding to physical key pressed. May be localized.