|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swt.graph.KeyStrokeTransformer
This class provides methods which aim to ensure that SWT key events are correctly understood and processed by the framework.
This class is not intended to be instanciated and only provides public static methods.
KeyEvent| Method Summary | |
static KeyStroke |
getKeyStroke(char keyChar,
int keyCode,
int modifiers)
This method is used in order to return a KeyStroke given a
keyChar, keyCode, and modifiers of
a "SWT" keystroke. |
static KeyStroke |
getKeyStroke(char keyChar,
int keyCode,
int modifiers,
boolean onKeyRelease)
This method is used in order to return a KeyStroke given a
keyChar, keyCode, and modifiers of
a "SWT" keystroke.
|
static KeyStroke |
getKeyStroke(org.eclipse.swt.events.KeyEvent e)
This method is used in order to return a KeyStroke given the
keyChar, keyCode, and modifiers of
the passed "SWT" key event. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static KeyStroke getKeyStroke(char keyChar,
int keyCode,
int modifiers)
This method is used in order to return a KeyStroke given a
keyChar, keyCode, and modifiers of
a "SWT" keystroke. Simply forwards its call to
with
getKeyStroke(char, int, int, boolean)false as last parameter.
keyChar - the char of the key.keyCode - an int specifying the numeric code for a key.modifiers - an int specifying any combination of the key
modifiers.
KeyStroke as
understood by the framework.getKeyStroke(char, int, int, boolean)public static KeyStroke getKeyStroke(org.eclipse.swt.events.KeyEvent e)
This method is used in order to return a KeyStroke given the
keyChar, keyCode, and modifiers of
the passed "SWT" key event. Simply forwards its call to
.
getKeyStroke(char, int, int)
e - a SWT key event.
KeyStroke as
understood by the framework.getKeyStroke(char, int, int, boolean)
public static KeyStroke getKeyStroke(char keyChar,
int keyCode,
int modifiers,
boolean onKeyRelease)
This method is used in order to return a KeyStroke given a
keyChar, keyCode, and modifiers of
a "SWT" keystroke.
keyChar - the char of the key.keyCode - an int specifying the numeric code for a key.modifiers - an int specifying any combination of the key
modifiers.onKeyRelease - A flag specifying whether this keystroke should trigger an
action on pressed or released event
KeyStroke as
understood by the framework.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||