|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.java2d.KeyboardBehaviorJ2D
public class KeyboardBehaviorJ2D
KeyboardBehaviorJ2D is the VisAD class for keyboard control of translate (pan) and zoom in Java2D.
| Field Summary | |
|---|---|
static int |
ROTATE_Z_NEG
Identifier for function to rotate negatively around the Z viewing axis (perpendicular to the screen plane) |
static int |
ROTATE_Z_POS
Identifier for function to rotate positively around the Z viewing axis (perpendicular to the screen plane) |
| Fields inherited from interface visad.KeyboardBehavior |
|---|
NO_MASK, RESET, TRANSLATE_DOWN, TRANSLATE_LEFT, TRANSLATE_RIGHT, TRANSLATE_UP, ZOOM_IN, ZOOM_OUT |
| Constructor Summary | |
|---|---|
KeyboardBehaviorJ2D(DisplayRendererJ2D r)
Construct a new keyboard behavior for the DisplayRenderer. |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ROTATE_Z_POS
public static final int ROTATE_Z_NEG
| Constructor Detail |
|---|
public KeyboardBehaviorJ2D(DisplayRendererJ2D r)
r - DisplayRenderer to use.DisplayRendererJ2D.addKeyboardBehavior(KeyboardBehaviorJ2D behavior)| Method Detail |
|---|
public void mapKeyToFunction(int function,
int keycode,
int modifiers)
mapKeyToFunction in interface KeyboardBehaviorfunction - keyboard function (ROTATE_X_POS, ZOOM_IN, etc)keycode - KeyEvent virtual keycodesmodifiers - InputEvent key maskKeyEvent,
InputEventpublic void processKeyEvent(KeyEvent event)
processKeyEvent in interface KeyboardBehaviorevent - KeyEvent stimuluspublic void execFunction(int function)
execFunction in interface KeyboardBehaviorfunction - function to perform (TRANSLATE_UP, ZOOM_IN, etc)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||