|
Eclipse GEF 3.0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.gef.KeyStroke
Encapsulates a Keyboard gesture (press or release) from the User. A KeyStroke is
matched to a KeyEvent based the KeyEvent.stateMask, KeyEvent.keyCode or
KeyEvent.character, and whether that KeyEvent was dispatched as a result of a
release or press by the User.
| Method Summary | |
boolean |
equals(Object obj)
|
static KeyStroke |
getPressed(char character,
int stateMask)
Constructs a KeyStroke that will match the given KeyEvent.character and
KeyEvent.stateMask during a press event. |
static KeyStroke |
getPressed(char character,
int keyCode,
int stateMask)
Constructs a KeyStroke that will match the given KeyEvent.character, KeyEvent.keyCode, and KeyEvent.stateMask during a press event. |
static KeyStroke |
getPressed(int keyCode,
int stateMask)
Constructs a KeyStroke that will match the given KeyEvent.keyCode and KeyEvent.stateMask during a press event. |
static KeyStroke |
getReleased(char character,
int stateMask)
Constructs a KeyStroke that will match the given KeyEvent.character and
KeyEvent.stateMask during a release event. |
static KeyStroke |
getReleased(char character,
int keyCode,
int stateMask)
Constructs a KeyStroke that will match the given KeyEvent.character, KeyEvent.keyCode, and KeyEvent.stateMask during a release event. |
static KeyStroke |
getReleased(int keyCode,
int stateMask)
Constructs a KeyStroke that will match the given KeyEvent.keyCode and KeyEvent.stateMask during a release event. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static KeyStroke getPressed(char character,
int stateMask)
KeyEvent.character and
KeyEvent.stateMask during a press event.
character - the character to matchstateMask - the stateMask to match
public static KeyStroke getPressed(int keyCode,
int stateMask)
KeyEvent.keyCode and KeyEvent.stateMask during a press event.
keyCode - the keyCode to matchstateMask - the stateMask to match
public static KeyStroke getPressed(char character,
int keyCode,
int stateMask)
KeyEvent.character, KeyEvent.keyCode, and KeyEvent.stateMask during a press event.
character - the character to matchkeyCode - the keyCode to matchstateMask - the stateMask to match
public static KeyStroke getReleased(char character,
int stateMask)
KeyEvent.character and
KeyEvent.stateMask during a release event.
character - the character to matchstateMask - the stateMask to match
public static KeyStroke getReleased(int keyCode,
int stateMask)
KeyEvent.keyCode and KeyEvent.stateMask during a release event.
keyCode - the keyCode to matchstateMask - the stateMask to match
public static KeyStroke getReleased(char character,
int keyCode,
int stateMask)
KeyEvent.character, KeyEvent.keyCode, and KeyEvent.stateMask during a release event.
character - the character to matchkeyCode - the keyCode to matchstateMask - the stateMask to match
public boolean equals(Object obj)
obj - the Object being compared
public int hashCode()
Object.hashCode()
|
Eclipse GEF 3.0.1 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||