public abstract class BasicViewInputHandler extends AbstractViewInputHandler
attributes, DEFAULT_DRAG_SLOPE_FACTOR, DEFAULT_PER_FRAME_INPUT_DELAY, dragSlopeFactor, enableSmoothing, GENERATE_EVENTS, keyActionMap, keyEventState, keyModsActionMap, lastMousePoint, lastPerFrameInputTime, lockHeading, modifierList, mouseActionMap, mouseDownPoint, mouseModsActionMap, mousePoint, mouseWheelModsActionMap, NUM_MODIFIERS, 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() |
callActionListener, computeDragSlope, computeSelectedPointAt, computeSelectedPosition, constrainToSourceBounds, evaluateScaleFuncEyeAltitude, evaluateScaleFuncZoom, focusGained, focusLost, getAttributes, getChangeInLocation, getDragSlopeFactor, getLastMousePoint, getMouseDownPoint, getMousePoint, getScaledValue, getScaleValue, getScaleValueElevation, getSelectedPosition, getView, getWorldWindow, handleFocusGained, handleFocusLost, handleKeyReleased, handleMouseMoved, handleMousePressed, handleMouseReleased, isEnableSmoothing, isLockHeading, isStopOnFocusLost, isWorldWindowFocusOwner, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, onHorizontalTranslateRel, onRotateView, onRotateView, onStopView, onVerticalTranslate, propertyChange, rawInputToChangeInValue, setAttributes, setDragSlopeFactor, setEnableSmoothing, setLockHeading, setMouseDownPoint, setSelectedPosition, setStopOnFocusLost, setWorldWindow, setWorldWindowFocusOwner, updateMousePoint, viewAppliedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAnimator, 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 callActionListListeners(KeyEventState keys, String target, ViewInputAttributes.ActionAttributes.ActionTrigger trigger, ViewInputAttributes.ActionAttributesList actionList)
protected boolean callActionListListeners(KeyEvent e, ViewInputAttributes.ActionAttributes.ActionTrigger trigger, ViewInputAttributes.ActionAttributesList actionList)
protected boolean callMouseActionListListeners(MouseEvent e, ViewInputAttributes.ActionAttributes.ActionTrigger trigger, ViewInputAttributes.ActionAttributesList actionList)
protected boolean callMouseWheelActionListListeners(MouseWheelEvent e, ViewInputAttributes.ActionAttributes.ActionTrigger trigger, ViewInputAttributes.ActionAttributesList actionList)
public void goTo(Position lookAtPos, double elevation)
ViewInputHandlerView to look
at the given position from the given elevation.lookAtPos - The position to animate the view to look at.elevation - The elevation to look at the position from.protected void handleKeyPressed(KeyEvent e)
handleKeyPressed in class AbstractViewInputHandlerprotected void handleMouseClicked(MouseEvent e)
handleMouseClicked in class AbstractViewInputHandlerprotected void handleMouseDragged(MouseEvent e)
handleMouseDragged in class AbstractViewInputHandlerprotected void handleMouseWheelMoved(MouseWheelEvent e)
handleMouseWheelMoved in class AbstractViewInputHandlerprotected boolean handlePerFrameKeyState(KeyEventState keys, String target)
handlePerFrameKeyState in class AbstractViewInputHandlerprotected boolean handlePerFrameMouseState(KeyEventState keys, String target)
handlePerFrameMouseState in class AbstractViewInputHandlerprotected void handlePropertyChange(PropertyChangeEvent e)
handlePropertyChange in class AbstractViewInputHandlerprotected void handleViewStopped()
protected void onHorizontalTranslateAbs(Angle latitudeChange, Angle longitudeChange, ViewInputAttributes.ActionAttributes actionAttribs)
onHorizontalTranslateAbs in class AbstractViewInputHandlerprotected void onHorizontalTranslateRel(double forwardInput,
double sideInput,
double totalForwardInput,
double totalSideInput,
ViewInputAttributes.DeviceAttributes deviceAttributes,
ViewInputAttributes.ActionAttributes actionAttributes)
onHorizontalTranslateRel in class AbstractViewInputHandlerprotected void onHorizontalTranslateRel(double forwardChange,
double sideChange,
ViewInputAttributes.ActionAttributes actionAttribs)
protected void onMoveTo(Position focalPosition, ViewInputAttributes.ActionAttributes actionAttribs)
onMoveTo in class AbstractViewInputHandlerprotected void onMoveTo(Position focalPosition, ViewInputAttributes.DeviceAttributes deviceAttributes, ViewInputAttributes.ActionAttributes actionAttribs)
onMoveTo in class AbstractViewInputHandlerprotected void onResetHeading(ViewInputAttributes.ActionAttributes actionAttribs)
onResetHeading in class AbstractViewInputHandlerprotected void onResetHeadingPitchRoll(ViewInputAttributes.ActionAttributes actionAttribs)
onResetHeadingPitchRoll in class AbstractViewInputHandlerprotected void onRotateView(Angle headingChange, Angle pitchChange, double totalHeadingInput, double totalPitchInput, ViewInputAttributes.ActionAttributes actionAttribs)
protected void onRotateView(double headingChange,
double pitchChange,
ViewInputAttributes.DeviceAttributes deviceAttributes,
ViewInputAttributes.ActionAttributes actionAttributes)
protected void onVerticalTranslate(double translateChange,
ViewInputAttributes.ActionAttributes actionAttribs)
onVerticalTranslate in class AbstractViewInputHandlerprotected void onVerticalTranslate(double translateChange,
ViewInputAttributes.DeviceAttributes deviceAttributes,
ViewInputAttributes.ActionAttributes actionAttributes)