public abstract class BasicViewInputHandler extends AbstractViewInputHandler
attributes, DEFAULT_DRAG_SLOPE_FACTOR, DEFAULT_PER_FRAME_INPUT_INTERVAL, dragSlopeFactor, enableSmoothing, GENERATE_EVENTS, keyActionMap, keyEventState, keyModsActionMap, lastMousePoint, lastPerFrameInputTime, lockHeading, modifierList, mouseActionMap, mouseDownModelview, mouseDownPoint, mouseDownProjection, mouseDownViewport, mouseModsActionMap, mousePoint, mouseWheelModsActionMap, NUM_MODIFIERS, perFrameInputInterval, QUERY_EVENTS, SCALE_FUNC_EYE_ALTITUDE, SCALE_FUNC_EYE_ALTITUDE_EXP, SCALE_FUNC_ZOOM, SCALE_FUNC_ZOOM_EXP, selectedPosition, stopOnFocusLost, wwd, wwdFocusOwner| Constructor and Description |
|---|
BasicViewInputHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply()
Implementations are expected to apply any changes to the
View state prior to the View
setting the modelview matrix for rendering the current frame. |
protected boolean |
callActionListener(KeyEventState keys,
java.lang.String target,
ViewInputAttributes.ActionAttributes action) |
protected boolean |
callActionListListeners(KeyEventState keys,
java.lang.String target,
ViewInputAttributes.ActionAttributes.ActionTrigger trigger,
ViewInputAttributes.ActionAttributesList actionList) |
protected boolean |
callActionListListeners(java.awt.event.KeyEvent e,
ViewInputAttributes.ActionAttributes.ActionTrigger trigger,
ViewInputAttributes.ActionAttributesList actionList) |
protected boolean |
callMouseActionListListeners(java.awt.event.MouseEvent e,
ViewInputAttributes.ActionAttributes.ActionTrigger trigger,
ViewInputAttributes.ActionAttributesList actionList) |
protected boolean |
callMouseWheelActionListListeners(java.awt.event.MouseWheelEvent e,
ViewInputAttributes.ActionAttributes.ActionTrigger trigger,
ViewInputAttributes.ActionAttributesList actionList) |
protected void |
handleKeyPressed(java.awt.event.KeyEvent e) |
protected void |
handleMouseClicked(java.awt.event.MouseEvent e) |
protected void |
handleMouseDragged(java.awt.event.MouseEvent e) |
protected void |
handleMouseWheelMoved(java.awt.event.MouseWheelEvent e) |
protected boolean |
handlePerFrameKeyState(KeyEventState keys,
java.lang.String target) |
protected boolean |
handlePerFrameMouseState(KeyEventState keys,
java.lang.String target) |
protected void |
handlePropertyChange(java.beans.PropertyChangeEvent e) |
protected void |
handleViewStopped() |
protected abstract void |
onHorizontalTranslateRel(double forwardInput,
double sideInput,
double sideInputFromMouseDown,
double forwardInputFromMouseDown,
ViewInputAttributes.DeviceAttributes deviceAttributes,
ViewInputAttributes.ActionAttributes actionAttributes) |
protected abstract void |
onMoveTo(Position focalPosition,
ViewInputAttributes.DeviceAttributes deviceAttributes,
ViewInputAttributes.ActionAttributes actionAttribs) |
protected abstract void |
onResetHeading(ViewInputAttributes.ActionAttributes actionAttribs) |
protected abstract void |
onResetHeadingPitchRoll(ViewInputAttributes.ActionAttributes actionAttribs) |
protected abstract void |
onRotateView(double headingInput,
double pitchInput,
double totalHeadingInput,
double totalPitchInput,
ViewInputAttributes.DeviceAttributes deviceAttributes,
ViewInputAttributes.ActionAttributes actionAttributes) |
protected abstract void |
onVerticalTranslate(double translateChange,
double totalTranslateChange,
ViewInputAttributes.DeviceAttributes deviceAttributes,
ViewInputAttributes.ActionAttributes actionAttributes) |
computeDragSlope, computeSelectedPointAt, computeSelectedPosition, constrainToSourceBounds, evaluateScaleFuncEyeAltitude, evaluateScaleFuncZoom, focusGained, focusLost, getAttributes, getChangeInLocation, getDragSlopeFactor, getLastMousePoint, getMouseDownPoint, getMousePoint, getPerFrameInputInterval, getScaledValue, getScaleValue, getScaleValueElevation, getSelectedPosition, getView, getWorldWindow, handleFocusGained, handleFocusLost, handleKeyReleased, handleMouseMoved, handleMousePressed, handleMouseReleased, handlePerFrameAnimation, isEnableSmoothing, isLockHeading, isStopOnFocusLost, isWorldWindowFocusOwner, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, onStopView, propertyChange, rawInputToChangeInValue, setAttributes, setDragSlopeFactor, setEnableSmoothing, setLockHeading, setMouseDownPoint, setMouseDownView, setPerFrameInputInterval, setSelectedPosition, setStopOnFocusLost, setWorldWindow, setWorldWindowFocusOwner, updateMousePoint, viewAppliedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAnimator, goTo, isAnimating, stopAnimatorspublic void apply()
ViewInputHandlerView state prior to the View
setting the modelview matrix for rendering the current frame.apply in interface ViewInputHandlerapply in class AbstractViewInputHandlerprotected boolean callActionListener(KeyEventState keys, java.lang.String target, ViewInputAttributes.ActionAttributes action)
protected boolean callActionListListeners(KeyEventState keys, java.lang.String target, ViewInputAttributes.ActionAttributes.ActionTrigger trigger, ViewInputAttributes.ActionAttributesList actionList)
protected boolean callActionListListeners(java.awt.event.KeyEvent e,
ViewInputAttributes.ActionAttributes.ActionTrigger trigger,
ViewInputAttributes.ActionAttributesList actionList)
protected boolean callMouseActionListListeners(java.awt.event.MouseEvent e,
ViewInputAttributes.ActionAttributes.ActionTrigger trigger,
ViewInputAttributes.ActionAttributesList actionList)
protected boolean callMouseWheelActionListListeners(java.awt.event.MouseWheelEvent e,
ViewInputAttributes.ActionAttributes.ActionTrigger trigger,
ViewInputAttributes.ActionAttributesList actionList)
protected void handleKeyPressed(java.awt.event.KeyEvent e)
handleKeyPressed in class AbstractViewInputHandlerprotected void handleMouseClicked(java.awt.event.MouseEvent e)
handleMouseClicked in class AbstractViewInputHandlerprotected void handleMouseDragged(java.awt.event.MouseEvent e)
handleMouseDragged in class AbstractViewInputHandlerprotected void handleMouseWheelMoved(java.awt.event.MouseWheelEvent e)
handleMouseWheelMoved in class AbstractViewInputHandlerprotected boolean handlePerFrameKeyState(KeyEventState keys, java.lang.String target)
handlePerFrameKeyState in class AbstractViewInputHandlerprotected boolean handlePerFrameMouseState(KeyEventState keys, java.lang.String target)
handlePerFrameMouseState in class AbstractViewInputHandlerprotected void handlePropertyChange(java.beans.PropertyChangeEvent e)
handlePropertyChange in class AbstractViewInputHandlerprotected void handleViewStopped()
protected abstract void onHorizontalTranslateRel(double forwardInput,
double sideInput,
double sideInputFromMouseDown,
double forwardInputFromMouseDown,
ViewInputAttributes.DeviceAttributes deviceAttributes,
ViewInputAttributes.ActionAttributes actionAttributes)
protected abstract void onMoveTo(Position focalPosition, ViewInputAttributes.DeviceAttributes deviceAttributes, ViewInputAttributes.ActionAttributes actionAttribs)
protected abstract void onResetHeading(ViewInputAttributes.ActionAttributes actionAttribs)
protected abstract void onResetHeadingPitchRoll(ViewInputAttributes.ActionAttributes actionAttribs)
protected abstract void onRotateView(double headingInput,
double pitchInput,
double totalHeadingInput,
double totalPitchInput,
ViewInputAttributes.DeviceAttributes deviceAttributes,
ViewInputAttributes.ActionAttributes actionAttributes)
protected abstract void onVerticalTranslate(double translateChange,
double totalTranslateChange,
ViewInputAttributes.DeviceAttributes deviceAttributes,
ViewInputAttributes.ActionAttributes actionAttributes)