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
-
equals(Object)
-
-
getKeyChar()
-
-
getKeyCode()
-
-
getKeyStroke(char)
- Return a shared instance of a key stroke given a char code
-
getKeyStroke(int, int)
-
-
getKeyStroke(int, int, boolean)
- Return a shared instance of a key stroke given a char code and a modifier
-
getKeyStroke(String)
- Return a shared instance of a key stroke matching a string representation
-
getKeyStrokeForEvent(KeyEvent)
- Return a keystroke from an event.
-
getModifiers()
-
-
hashCode()
-
-
isOnKeyRelease()
-
getKeyStroke
public static JKeyStroke getKeyStroke(char keyChar)
- Return a shared instance of a key stroke given a char code
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
getKeyStroke
public static JKeyStroke getKeyStroke(int keyCode,
int modifiers)
getKeyStrokeForEvent
public static JKeyStroke getKeyStrokeForEvent(KeyEvent anEvent)
- Return a keystroke from an event. Use the the keyChar if present, keyCode otherwise
getKeyStroke
public static JKeyStroke getKeyStroke(String representation)
- Return a shared instance of a key stroke matching a string representation
getKeyChar
public char getKeyChar()
getKeyCode
public int getKeyCode()
getModifiers
public int getModifiers()
isOnKeyRelease
public boolean isOnKeyRelease()
hashCode
public int hashCode()
- Overrides:
- hashCode in class Object
equals
public boolean equals(Object anObject)
- Overrides:
- equals in class Object
All Packages Class Hierarchy This Package Previous Next Index