|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KeyboardBehavior
Field Summary | |
---|---|
static int |
NO_MASK
Mask to indicate there are no modifiers for this key. |
static int |
RESET
Identifier for function to reset the display to the original projection or last saved projection |
static int |
TRANSLATE_DOWN
Identifier for function to translate the display downwards |
static int |
TRANSLATE_LEFT
Identifier for function to translate the display to the left |
static int |
TRANSLATE_RIGHT
Identifier for function to translate the display to the right |
static int |
TRANSLATE_UP
Identifier for function to translate the display upwards |
static int |
ZOOM_IN
Identifier for function to zoom in the display |
static int |
ZOOM_OUT
Identifier for function to zoom out the display |
Method Summary | |
---|---|
void |
execFunction(int function)
Executes the given function. |
void |
mapKeyToFunction(int function,
int keycode,
int modifiers)
Maps key represented by keycode & modifiers to the given function. |
void |
processKeyEvent(KeyEvent event)
Process a key event. |
Field Detail |
---|
static final int TRANSLATE_UP
static final int TRANSLATE_DOWN
static final int TRANSLATE_LEFT
static final int TRANSLATE_RIGHT
static final int ZOOM_IN
static final int ZOOM_OUT
static final int RESET
ProjectionControl.resetProjection()
,
Constant Field Valuesstatic final int NO_MASK
mapKeyToFunction(int function, int keycode, int modifiers)
,
Constant Field ValuesMethod Detail |
---|
void mapKeyToFunction(int function, int keycode, int modifiers)
function
- keyboard function (TRANSLATE_UP, ZOOM_IN, etc)keycode
- KeyEvent
virtual keycodesmodifiers
- InputEvent
key maskKeyEvent
,
InputEvent
void processKeyEvent(KeyEvent event)
event
- KeyEvent stimulusvoid execFunction(int function)
function
- function to perform (TRANSLATE_UP, ZOOM_IN, etc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |