Module com.esri.arcgisruntime
Class MapView.DefaultInteractionListener
java.lang.Object
com.esri.arcgisruntime.mapping.view.MapView.DefaultInteractionListener
- All Implemented Interfaces:
InteractionListener
- Enclosing class:
MapView
public static class MapView.DefaultInteractionListener
extends Object
implements InteractionListener
Default listener to handle input events on the map view.
- Since:
- 100.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected double[]
The last drag point.protected boolean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
DefaultInteractionListener
(MapView mapView) Creates default interaction listener. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called whenKeyEvent.KEY_PRESSED
is dispatched to the view.void
Called whenKeyEvent.KEY_RELEASED
is dispatched to the view.void
Called whenMouseEvent.MOUSE_DRAGGED
is dispatched to the view.void
Called whenMouseEvent.MOUSE_ENTERED
is dispatched to the view.void
Called whenMouseEvent.MOUSE_EXITED
is dispatched to the view.void
Called whenMouseEvent.MOUSE_MOVED
is dispatched to the view.void
Called whenMouseEvent.MOUSE_PRESSED
is dispatched to the view.void
Called whenMouseEvent.MOUSE_RELEASED
is dispatched to the view.void
Called on the current interaction listener when it is unset from the view i.e., when theGeoView.setInteractionListener(InteractionListener)
is called with a new interaction listener.void
Called whenRotateEvent.ROTATE
is dispatched to the view.void
onRotationFinished
(RotateEvent event) Called when a rotate gesture finishes.void
onRotationStarted
(RotateEvent event) Called when a rotate gesture starts.void
Called whenScrollEvent.SCROLL
is dispatched to the view.void
onScrollFinished
(ScrollEvent event) Called when a scroll gesture finishes.void
onScrollStarted
(ScrollEvent event) Called when a scroll gesture starts.void
Called whenSwipeEvent.SWIPE_DOWN
is dispatched to the view.void
Called whenSwipeEvent.SWIPE_LEFT
is dispatched to the view.void
Called whenSwipeEvent.SWIPE_RIGHT
is dispatched to the view.void
Called whenSwipeEvent.SWIPE_UP
is dispatched to the view.void
Called whenZoomEvent.ZOOM
is dispatched to the view.void
onZoomFinished
(ZoomEvent event) Called when a zoom gesture finishes.void
onZoomStarted
(ZoomEvent event) Called when a zoom gesture starts.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.esri.arcgisruntime.mapping.view.InteractionListener
onAdded, onKeyTyped, onMouseClicked, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary
-
Field Details
-
mPanning
protected boolean mPanning -
mLastDragPoint
protected double[] mLastDragPointThe last drag point. Used to calculate the deltas for mouse panning.
-
-
Constructor Details
-
DefaultInteractionListener
Creates default interaction listener.- Since:
- 100.1.0
-
-
Method Details
-
onRemoved
public void onRemoved()Description copied from interface:InteractionListener
Called on the current interaction listener when it is unset from the view i.e., when theGeoView.setInteractionListener(InteractionListener)
is called with a new interaction listener. Also called when the view is disposed.- Specified by:
onRemoved
in interfaceInteractionListener
-
onMousePressed
Description copied from interface:InteractionListener
Called whenMouseEvent.MOUSE_PRESSED
is dispatched to the view. The default implementation requests focus and should be called from any override if you wish to maintain that behavior.- Specified by:
onMousePressed
in interfaceInteractionListener
- Parameters:
e
- mouse pressed event
-
onMouseReleased
Description copied from interface:InteractionListener
Called whenMouseEvent.MOUSE_RELEASED
is dispatched to the view.- Specified by:
onMouseReleased
in interfaceInteractionListener
- Parameters:
e
- mouse released event
-
onMouseDragged
Description copied from interface:InteractionListener
Called whenMouseEvent.MOUSE_DRAGGED
is dispatched to the view.- Specified by:
onMouseDragged
in interfaceInteractionListener
- Parameters:
e
- mouse dragged event
-
onMouseMoved
Description copied from interface:InteractionListener
Called whenMouseEvent.MOUSE_MOVED
is dispatched to the view.- Specified by:
onMouseMoved
in interfaceInteractionListener
- Parameters:
e
- mouse moved event
-
onMouseExited
Description copied from interface:InteractionListener
Called whenMouseEvent.MOUSE_EXITED
is dispatched to the view.- Specified by:
onMouseExited
in interfaceInteractionListener
- Parameters:
e
- the mouse event
-
onMouseEntered
Description copied from interface:InteractionListener
Called whenMouseEvent.MOUSE_ENTERED
is dispatched to the view.- Specified by:
onMouseEntered
in interfaceInteractionListener
- Parameters:
e
- the mouse event
-
onScroll
Description copied from interface:InteractionListener
Called whenScrollEvent.SCROLL
is dispatched to the view.- Specified by:
onScroll
in interfaceInteractionListener
- Parameters:
e
- scroll event
-
onKeyPressed
Description copied from interface:InteractionListener
Called whenKeyEvent.KEY_PRESSED
is dispatched to the view.- Specified by:
onKeyPressed
in interfaceInteractionListener
- Parameters:
e
- key pressed event
-
onKeyReleased
Description copied from interface:InteractionListener
Called whenKeyEvent.KEY_RELEASED
is dispatched to the view.- Specified by:
onKeyReleased
in interfaceInteractionListener
- Parameters:
e
- key released event
-
onZoom
Description copied from interface:InteractionListener
Called whenZoomEvent.ZOOM
is dispatched to the view.- Specified by:
onZoom
in interfaceInteractionListener
- Parameters:
e
- zoom event
-
onRotate
Description copied from interface:InteractionListener
Called whenRotateEvent.ROTATE
is dispatched to the view.- Specified by:
onRotate
in interfaceInteractionListener
- Parameters:
e
- rotate event
-
onSwipeLeft
Description copied from interface:InteractionListener
Called whenSwipeEvent.SWIPE_LEFT
is dispatched to the view.- Specified by:
onSwipeLeft
in interfaceInteractionListener
- Parameters:
e
- swipe left event
-
onSwipeDown
Description copied from interface:InteractionListener
Called whenSwipeEvent.SWIPE_DOWN
is dispatched to the view.- Specified by:
onSwipeDown
in interfaceInteractionListener
- Parameters:
e
- swipe down event
-
onSwipeRight
Description copied from interface:InteractionListener
Called whenSwipeEvent.SWIPE_RIGHT
is dispatched to the view.- Specified by:
onSwipeRight
in interfaceInteractionListener
- Parameters:
e
- swipe right event
-
onSwipeUp
Description copied from interface:InteractionListener
Called whenSwipeEvent.SWIPE_UP
is dispatched to the view.- Specified by:
onSwipeUp
in interfaceInteractionListener
- Parameters:
e
- swipe up event
-
onRotationStarted
Description copied from interface:InteractionListener
Called when a rotate gesture starts.- Specified by:
onRotationStarted
in interfaceInteractionListener
- Parameters:
event
- the rotate event
-
onRotationFinished
Description copied from interface:InteractionListener
Called when a rotate gesture finishes.- Specified by:
onRotationFinished
in interfaceInteractionListener
- Parameters:
event
- the rotate event
-
onScrollStarted
Description copied from interface:InteractionListener
Called when a scroll gesture starts.- Specified by:
onScrollStarted
in interfaceInteractionListener
- Parameters:
event
- the scroll event
-
onScrollFinished
Description copied from interface:InteractionListener
Called when a scroll gesture finishes.- Specified by:
onScrollFinished
in interfaceInteractionListener
- Parameters:
event
- the scroll event
-
onZoomStarted
Description copied from interface:InteractionListener
Called when a zoom gesture starts.- Specified by:
onZoomStarted
in interfaceInteractionListener
- Parameters:
event
- the zoom event
-
onZoomFinished
Description copied from interface:InteractionListener
Called when a zoom gesture finishes.- Specified by:
onZoomFinished
in interfaceInteractionListener
- Parameters:
event
- the zoom event
-