gov.nasa.worldwind.awt
Class ViewInputAttributes
java.lang.Object
gov.nasa.worldwind.awt.ViewInputAttributes
public class ViewInputAttributes
- extends Object
|
Method Summary |
void |
addAction(Object deviceKey,
Integer modifier,
Object actionKey,
ViewInputAttributes.ActionAttributes actionAttrs)
|
void |
addModifierAction(Object device,
Integer modifier,
ViewInputAttributes.ActionAttributes action)
|
void |
addModifierActionList(Object device,
Integer modifier)
|
ViewInputAttributes.ActionAttributes |
getActionAttributes(Object deviceKey,
Object actionKey)
|
ViewInputAttributes.ActionAttributesMap |
getActionMap(Object deviceKey)
|
ViewInputAttributes.DeviceAttributes |
getDeviceAttributes(Object deviceKey)
|
List |
getModifierActionList(Object device,
Integer modifier)
|
ViewInputAttributes.DeviceModifierMap |
getModifierActionMap(Object deviceKey)
|
protected ViewInputAttributes.ActionAttributes |
makeSlowActionAttributes(ViewInputAttributes.ActionAttributes attributes,
double slowCoefficient)
|
void |
setActionListener(Object deviceKey,
Object actionKey,
ViewInputActionHandler listener)
|
void |
setActionMap(Object deviceKey,
ViewInputAttributes.ActionAttributesMap map)
|
void |
setActionTrigger(Object device,
Object action,
ViewInputAttributes.ActionAttributes.ActionTrigger trigger)
|
protected void |
setDefaultDeviceAttributes()
|
void |
setDeviceAttributes(Object deviceKey,
ViewInputAttributes.DeviceAttributes attributes)
|
protected void |
setDeviceModifierActionMaps()
|
void |
setModifierActionMap(Object deviceKey,
ViewInputAttributes.DeviceModifierMap map)
|
void |
setMouseActionAttributes(String actionName,
int modifier,
ViewInputAttributes.ActionAttributes.ActionTrigger trigger,
ViewInputAttributes.ActionAttributes.MouseAction[] mouseActions,
double minValue,
double maxValue,
boolean smoothingEnabled,
double smoothingValue)
|
void |
setValues(Object device,
Object action,
double minValue,
double maxValue)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_HORIZONTAL_TRANSLATE_SMOOTHING_ENABLED
public static final boolean DEFAULT_HORIZONTAL_TRANSLATE_SMOOTHING_ENABLED
- See Also:
- Constant Field Values
DEFAULT_HORIZONTAL_TRANSLATE_SMOOTHING_VALUE
public static final double DEFAULT_HORIZONTAL_TRANSLATE_SMOOTHING_VALUE
- See Also:
- Constant Field Values
DEFAULT_KEY_HORIZONTAL_TRANSLATE_MAX_VALUE
public static final double DEFAULT_KEY_HORIZONTAL_TRANSLATE_MAX_VALUE
- See Also:
- Constant Field Values
DEFAULT_KEY_HORIZONTAL_TRANSLATE_MIN_VALUE
public static final double DEFAULT_KEY_HORIZONTAL_TRANSLATE_MIN_VALUE
- See Also:
- Constant Field Values
DEFAULT_KEY_ROLL_MAX_VALUE
public static final double DEFAULT_KEY_ROLL_MAX_VALUE
- See Also:
- Constant Field Values
DEFAULT_KEY_ROLL_MIN_VALUE
public static final double DEFAULT_KEY_ROLL_MIN_VALUE
- See Also:
- Constant Field Values
DEFAULT_KEY_ROTATE_MAX_VALUE
public static final double DEFAULT_KEY_ROTATE_MAX_VALUE
- See Also:
- Constant Field Values
DEFAULT_KEY_ROTATE_MIN_VALUE
public static final double DEFAULT_KEY_ROTATE_MIN_VALUE
- See Also:
- Constant Field Values
DEFAULT_KEY_SENSITIVITY
public static final double DEFAULT_KEY_SENSITIVITY
- See Also:
- Constant Field Values
DEFAULT_KEY_VERTICAL_TRANSLATE_VALUE
public static final double DEFAULT_KEY_VERTICAL_TRANSLATE_VALUE
- See Also:
- Constant Field Values
DEFAULT_MOUSE_HORIZONTAL_TRANSLATE_MAX_VALUE
public static final double DEFAULT_MOUSE_HORIZONTAL_TRANSLATE_MAX_VALUE
- See Also:
- Constant Field Values
DEFAULT_MOUSE_HORIZONTAL_TRANSLATE_MIN_VALUE
public static final double DEFAULT_MOUSE_HORIZONTAL_TRANSLATE_MIN_VALUE
- See Also:
- Constant Field Values
DEFAULT_MOUSE_MOVE_TO_MAX_VALUE
public static final double DEFAULT_MOUSE_MOVE_TO_MAX_VALUE
- See Also:
- Constant Field Values
DEFAULT_MOUSE_MOVE_TO_MIN_VALUE
public static final double DEFAULT_MOUSE_MOVE_TO_MIN_VALUE
- See Also:
- Constant Field Values
DEFAULT_MOUSE_ROTATE_MAX_VALUE
public static final double DEFAULT_MOUSE_ROTATE_MAX_VALUE
- See Also:
- Constant Field Values
DEFAULT_MOUSE_ROTATE_MIN_VALUE
public static final double DEFAULT_MOUSE_ROTATE_MIN_VALUE
- See Also:
- Constant Field Values
DEFAULT_MOUSE_SENSITIVITY
public static final double DEFAULT_MOUSE_SENSITIVITY
- See Also:
- Constant Field Values
DEFAULT_MOUSE_VERTICAL_TRANSLATE_VALUE
public static final double DEFAULT_MOUSE_VERTICAL_TRANSLATE_VALUE
- See Also:
- Constant Field Values
DEFAULT_MOUSE_WHEEL_SENSITIVITY
public static final double DEFAULT_MOUSE_WHEEL_SENSITIVITY
- See Also:
- Constant Field Values
DEFAULT_MOUSE_WHEEL_VERTICAL_TRANSLATE_VALUE
public static final double DEFAULT_MOUSE_WHEEL_VERTICAL_TRANSLATE_VALUE
- See Also:
- Constant Field Values
DEFAULT_MOUSE_WHEEL_VERTICAL_TRANSLATE_VALUE_OSX
public static final double DEFAULT_MOUSE_WHEEL_VERTICAL_TRANSLATE_VALUE_OSX
- See Also:
- Constant Field Values
DEFAULT_MOVE_TO_SMOOTHING_ENABLED
public static final boolean DEFAULT_MOVE_TO_SMOOTHING_ENABLED
- See Also:
- Constant Field Values
DEFAULT_MOVE_TO_SMOOTHING_VALUE
public static final double DEFAULT_MOVE_TO_SMOOTHING_VALUE
- See Also:
- Constant Field Values
DEFAULT_ROLL_SMOOTHING_ENABLED
public static final boolean DEFAULT_ROLL_SMOOTHING_ENABLED
- See Also:
- Constant Field Values
DEFAULT_ROLL_SMOOTHING_VALUE
public static final double DEFAULT_ROLL_SMOOTHING_VALUE
- See Also:
- Constant Field Values
DEFAULT_ROTATE_ROLLDOWN_KEY_ACT
protected static final ViewInputAttributes.ActionAttributes.KeyAction DEFAULT_ROTATE_ROLLDOWN_KEY_ACT
DEFAULT_ROTATE_ROLLUP_KEY_ACT
protected static final ViewInputAttributes.ActionAttributes.KeyAction DEFAULT_ROTATE_ROLLUP_KEY_ACT
DEFAULT_ROTATE_SMOOTHING_ENABLED
public static final boolean DEFAULT_ROTATE_SMOOTHING_ENABLED
- See Also:
- Constant Field Values
DEFAULT_ROTATE_SMOOTHING_VALUE
public static final double DEFAULT_ROTATE_SMOOTHING_VALUE
- See Also:
- Constant Field Values
DEFAULT_SLOW_VALUE
public static final double DEFAULT_SLOW_VALUE
- See Also:
- Constant Field Values
DEFAULT_VERTICAL_TRANSLATE_SMOOTHING_ENABLED
public static final boolean DEFAULT_VERTICAL_TRANSLATE_SMOOTHING_ENABLED
- See Also:
- Constant Field Values
DEFAULT_VERTICAL_TRANSLATE_SMOOTHING_VALUE
public static final double DEFAULT_VERTICAL_TRANSLATE_SMOOTHING_VALUE
- See Also:
- Constant Field Values
DEVICE_KEYBOARD
public static final String DEVICE_KEYBOARD
- See Also:
- Constant Field Values
DEVICE_KEYBOARD_MODS
public static final String DEVICE_KEYBOARD_MODS
- See Also:
- Constant Field Values
DEVICE_MOUSE
public static final String DEVICE_MOUSE
- See Also:
- Constant Field Values
DEVICE_MOUSE_MODS
public static final String DEVICE_MOUSE_MODS
- See Also:
- Constant Field Values
DEVICE_MOUSE_WHEEL
public static final String DEVICE_MOUSE_WHEEL
- See Also:
- Constant Field Values
DEVICE_MOUSE_WHEEL_MODS
public static final String DEVICE_MOUSE_WHEEL_MODS
- See Also:
- Constant Field Values
horizontalTransKeyEvents
public static final ViewInputAttributes.ActionAttributes.KeyAction[] horizontalTransKeyEvents
horizontalTransMouseEvents
public static final ViewInputAttributes.ActionAttributes.MouseAction[] horizontalTransMouseEvents
moveToMouseEvents
public static final ViewInputAttributes.ActionAttributes.MouseAction[] moveToMouseEvents
resetHeadingEvents
public static final ViewInputAttributes.ActionAttributes.KeyAction[] resetHeadingEvents
resetHeadingPitchRollEvents
public static final ViewInputAttributes.ActionAttributes.KeyAction[] resetHeadingPitchRollEvents
rollKeyEvents
public static final ViewInputAttributes.ActionAttributes.KeyAction[] rollKeyEvents
rotateMouseEvents
public static final ViewInputAttributes.ActionAttributes.MouseAction[] rotateMouseEvents
rotateMouseEventsShift
public static final ViewInputAttributes.ActionAttributes.MouseAction[] rotateMouseEventsShift
rotationKeyEvents
public static final ViewInputAttributes.ActionAttributes.KeyAction[] rotationKeyEvents
rotationKeyEventsPage
public static final ViewInputAttributes.ActionAttributes.KeyAction[] rotationKeyEventsPage
stopViewEvents
public static final ViewInputAttributes.ActionAttributes.KeyAction[] stopViewEvents
verticalTransKeyEvents
public static final ViewInputAttributes.ActionAttributes.KeyAction[] verticalTransKeyEvents
verticalTransKeyEventsCtrl
public static final ViewInputAttributes.ActionAttributes.KeyAction[] verticalTransKeyEventsCtrl
verticalTransMouseEvents
public static final ViewInputAttributes.ActionAttributes.MouseAction[] verticalTransMouseEvents
verticalTransMouseEventsCtrl
public static final ViewInputAttributes.ActionAttributes.MouseAction[] verticalTransMouseEventsCtrl
verticalTransMouseWheelEvents
public static final ViewInputAttributes.ActionAttributes.MouseAction[] verticalTransMouseWheelEvents
VIEW_FOCUS
public static final String VIEW_FOCUS
- See Also:
- Constant Field Values
VIEW_FOCUS_SLOW
public static final String VIEW_FOCUS_SLOW
- See Also:
- Constant Field Values
VIEW_HORIZONTAL_TRANS_KEYS
public static final String VIEW_HORIZONTAL_TRANS_KEYS
- See Also:
- Constant Field Values
VIEW_HORIZONTAL_TRANSLATE
public static final String VIEW_HORIZONTAL_TRANSLATE
- See Also:
- Constant Field Values
VIEW_HORIZONTAL_TRANSLATE_SLOW
public static final String VIEW_HORIZONTAL_TRANSLATE_SLOW
- See Also:
- Constant Field Values
VIEW_MOVE_TO
public static final String VIEW_MOVE_TO
- See Also:
- Constant Field Values
VIEW_MOVE_TO_SLOW
public static final String VIEW_MOVE_TO_SLOW
- See Also:
- Constant Field Values
VIEW_PAN
public static final String VIEW_PAN
- See Also:
- Constant Field Values
VIEW_PAN_SLOW
public static final String VIEW_PAN_SLOW
- See Also:
- Constant Field Values
VIEW_RESET_HEADING
public static final String VIEW_RESET_HEADING
- See Also:
- Constant Field Values
VIEW_RESET_HEADING_PITCH_ROLL
public static final String VIEW_RESET_HEADING_PITCH_ROLL
- See Also:
- Constant Field Values
VIEW_ROLL_KEYS
public static final String VIEW_ROLL_KEYS
- See Also:
- Constant Field Values
VIEW_ROTATE
public static final String VIEW_ROTATE
- See Also:
- Constant Field Values
VIEW_ROTATE_KEYS
public static final String VIEW_ROTATE_KEYS
- See Also:
- Constant Field Values
VIEW_ROTATE_KEYS_SHIFT
public static final String VIEW_ROTATE_KEYS_SHIFT
- See Also:
- Constant Field Values
VIEW_ROTATE_KEYS_SHIFT_SLOW
public static final String VIEW_ROTATE_KEYS_SHIFT_SLOW
- See Also:
- Constant Field Values
VIEW_ROTATE_SHIFT
public static final String VIEW_ROTATE_SHIFT
- See Also:
- Constant Field Values
VIEW_ROTATE_SLOW
public static final String VIEW_ROTATE_SLOW
- See Also:
- Constant Field Values
VIEW_STOP_VIEW
public static final String VIEW_STOP_VIEW
- See Also:
- Constant Field Values
VIEW_VERTICAL_TRANS_KEYS
public static final String VIEW_VERTICAL_TRANS_KEYS
- See Also:
- Constant Field Values
VIEW_VERTICAL_TRANS_KEYS_CTRL
public static final String VIEW_VERTICAL_TRANS_KEYS_CTRL
- See Also:
- Constant Field Values
VIEW_VERTICAL_TRANS_KEYS_META
public static final String VIEW_VERTICAL_TRANS_KEYS_META
- See Also:
- Constant Field Values
VIEW_VERTICAL_TRANS_KEYS_SLOW
public static final String VIEW_VERTICAL_TRANS_KEYS_SLOW
- See Also:
- Constant Field Values
VIEW_VERTICAL_TRANS_KEYS_SLOW_CTRL
public static final String VIEW_VERTICAL_TRANS_KEYS_SLOW_CTRL
- See Also:
- Constant Field Values
VIEW_VERTICAL_TRANS_KEYS_SLOW_META
public static final String VIEW_VERTICAL_TRANS_KEYS_SLOW_META
- See Also:
- Constant Field Values
VIEW_VERTICAL_TRANSLATE
public static final String VIEW_VERTICAL_TRANSLATE
- See Also:
- Constant Field Values
VIEW_VERTICAL_TRANSLATE_CTRL
public static final String VIEW_VERTICAL_TRANSLATE_CTRL
- See Also:
- Constant Field Values
VIEW_VERTICAL_TRANSLATE_SLOW
public static final String VIEW_VERTICAL_TRANSLATE_SLOW
- See Also:
- Constant Field Values
VIEW_ZOOM
public static final String VIEW_ZOOM
- See Also:
- Constant Field Values
VIEW_ZOOM_SLOW
public static final String VIEW_ZOOM_SLOW
- See Also:
- Constant Field Values
ViewInputAttributes
public ViewInputAttributes()
addAction
public void addAction(Object deviceKey,
Integer modifier,
Object actionKey,
ViewInputAttributes.ActionAttributes actionAttrs)
addModifierAction
public void addModifierAction(Object device,
Integer modifier,
ViewInputAttributes.ActionAttributes action)
addModifierActionList
public void addModifierActionList(Object device,
Integer modifier)
getActionAttributes
public ViewInputAttributes.ActionAttributes getActionAttributes(Object deviceKey,
Object actionKey)
getActionMap
public ViewInputAttributes.ActionAttributesMap getActionMap(Object deviceKey)
getDeviceAttributes
public ViewInputAttributes.DeviceAttributes getDeviceAttributes(Object deviceKey)
getModifierActionList
public List getModifierActionList(Object device,
Integer modifier)
getModifierActionMap
public ViewInputAttributes.DeviceModifierMap getModifierActionMap(Object deviceKey)
makeSlowActionAttributes
protected ViewInputAttributes.ActionAttributes makeSlowActionAttributes(ViewInputAttributes.ActionAttributes attributes,
double slowCoefficient)
setActionListener
public void setActionListener(Object deviceKey,
Object actionKey,
ViewInputActionHandler listener)
setActionMap
public void setActionMap(Object deviceKey,
ViewInputAttributes.ActionAttributesMap map)
setActionTrigger
public void setActionTrigger(Object device,
Object action,
ViewInputAttributes.ActionAttributes.ActionTrigger trigger)
setDefaultDeviceAttributes
protected void setDefaultDeviceAttributes()
setDeviceAttributes
public void setDeviceAttributes(Object deviceKey,
ViewInputAttributes.DeviceAttributes attributes)
setDeviceModifierActionMaps
protected void setDeviceModifierActionMaps()
setModifierActionMap
public void setModifierActionMap(Object deviceKey,
ViewInputAttributes.DeviceModifierMap map)
setMouseActionAttributes
public void setMouseActionAttributes(String actionName,
int modifier,
ViewInputAttributes.ActionAttributes.ActionTrigger trigger,
ViewInputAttributes.ActionAttributes.MouseAction[] mouseActions,
double minValue,
double maxValue,
boolean smoothingEnabled,
double smoothingValue)
setValues
public void setValues(Object device,
Object action,
double minValue,
double maxValue)