All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.JKeyStroke

java.lang.Object
   |
   +----com.sun.java.swing.JKeyStroke

public class JKeyStroke
extends Object

Method Index

 o equals(Object)
 o getKeyChar()
 o getKeyCode()
 o getKeyStroke(char)
Return a shared instance of a key stroke given a char code
 o getKeyStroke(int, int)
 o getKeyStroke(int, int, boolean)
Return a shared instance of a key stroke given a char code and a modifier
 o getKeyStroke(String)
Return a shared instance of a key stroke matching a string representation
 o getKeyStrokeForEvent(KeyEvent)
Return a keystroke from an event.
 o getModifiers()
 o hashCode()
 o isOnKeyRelease()

Methods

 o getKeyStroke
 public static JKeyStroke getKeyStroke(char keyChar)
Return a shared instance of a key stroke given a char code

 o getKeyStroke
 public static JKeyStroke getKeyStroke(int keyCode,
                                       int modifiers,
                                       boolean onKeyRelease)
Return a shared instance of a key stroke given a char code and a modifier

 o getKeyStroke
 public static JKeyStroke getKeyStroke(int keyCode,
                                       int modifiers)
 o getKeyStrokeForEvent
 public static JKeyStroke getKeyStrokeForEvent(KeyEvent anEvent)
Return a keystroke from an event. Use the the keyChar if present, keyCode otherwise

 o getKeyStroke
 public static JKeyStroke getKeyStroke(String representation)
Return a shared instance of a key stroke matching a string representation

 o getKeyChar
 public char getKeyChar()
 o getKeyCode
 public int getKeyCode()
 o getModifiers
 public int getModifiers()
 o isOnKeyRelease
 public boolean isOnKeyRelease()
 o hashCode
 public int hashCode()
Overrides:
hashCode in class Object
 o equals
 public boolean equals(Object anObject)
Overrides:
equals in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index