1 18 package org.apache.batik.gvt.event; 19 20 import org.apache.batik.gvt.GraphicsNode; 21 22 28 public class GraphicsNodeKeyEvent extends GraphicsNodeInputEvent { 29 30 static final int KEY_FIRST = 400; 31 32 39 public static final int KEY_TYPED = KEY_FIRST; 40 41 45 public static final int KEY_PRESSED = 1 + KEY_FIRST; 46 47 51 public static final int KEY_RELEASED = 2 + KEY_FIRST; 52 53 60 int keyCode; 61 62 67 char keyChar; 68 69 76 public GraphicsNodeKeyEvent(GraphicsNode source, int id, 77 long when, int modifiers, int keyCode, 78 char keyChar) { 79 super(source, id, when, modifiers); 80 this.keyCode = keyCode; 81 this.keyChar = keyChar; 82 } 83 84 87 public int getKeyCode() { 88 return keyCode; 89 } 90 91 95 public char getKeyChar() { 96 return keyChar; 97 } 98 99 } 100 | Popular Tags |