org.graffiti.plugin.view.interactive
Class KeyboardGesture

java.lang.Object
  extended by org.graffiti.plugin.view.interactive.ModifiableUserGesture
      extended by org.graffiti.plugin.view.interactive.KeyboardGesture
All Implemented Interfaces:
UserGesture
Direct Known Subclasses:
KeyPressGesture, KeyReleaseGesture

public class KeyboardGesture
extends ModifiableUserGesture

User gesture that represents a key press or release. It is provided for convenience and its use by InteractiveViews is not prescribed.

Version:
$Revision$ $Date$
Author:
Andreas Gleißner
See Also:
UserGesture, InputEvent.getModifiersEx(), KeyEvent.getKeyCode()

Constructor Summary
protected KeyboardGesture(int keyCode, int modifierMask)
          Constructs a KeyboardGesture.
 
Method Summary
 int getKeyCode()
          Returns the key code.
 
Methods inherited from class org.graffiti.plugin.view.interactive.ModifiableUserGesture
isAltDown, isControlDown, isLeftMouseButtonDown, isMetaDown, isMiddleMouseButtonDown, isRightMouseButtonDown, isShiftDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyboardGesture

protected KeyboardGesture(int keyCode,
                          int modifierMask)
Constructs a KeyboardGesture.

Parameters:
keyCode - the key code.
modifierMask - a bit set representing the state of modal keys and mouse buttons.
See Also:
InputEvent.getModifiersEx()
Method Detail

getKeyCode

public int getKeyCode()
Returns the key code.

Returns:
the key code.
See Also:
KeyEvent.getKeyCode()


Generated at 2012-05-30 11:00:36 PM CEST