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
ConstructorsModifierConstructorDescriptionprotectedDefaultInteractionListener(MapView mapView) Creates default interaction listener. -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled whenKeyEvent.KEY_PRESSEDis dispatched to the view.voidCalled whenKeyEvent.KEY_RELEASEDis dispatched to the view.voidCalled whenMouseEvent.MOUSE_DRAGGEDis dispatched to the view.voidCalled whenMouseEvent.MOUSE_ENTEREDis dispatched to the view.voidCalled whenMouseEvent.MOUSE_EXITEDis dispatched to the view.voidCalled whenMouseEvent.MOUSE_MOVEDis dispatched to the view.voidCalled whenMouseEvent.MOUSE_PRESSEDis dispatched to the view.voidCalled whenMouseEvent.MOUSE_RELEASEDis dispatched to the view.voidCalled 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.voidCalled whenRotateEvent.ROTATEis dispatched to the view.voidonRotationFinished(RotateEvent event) Called when a rotate gesture finishes.voidonRotationStarted(RotateEvent event) Called when a rotate gesture starts.voidCalled whenScrollEvent.SCROLLis dispatched to the view.voidonScrollFinished(ScrollEvent event) Called when a scroll gesture finishes.voidonScrollStarted(ScrollEvent event) Called when a scroll gesture starts.voidCalled whenSwipeEvent.SWIPE_DOWNis dispatched to the view.voidCalled whenSwipeEvent.SWIPE_LEFTis dispatched to the view.voidCalled whenSwipeEvent.SWIPE_RIGHTis dispatched to the view.voidCalled whenSwipeEvent.SWIPE_UPis dispatched to the view.voidCalled whenZoomEvent.ZOOMis dispatched to the view.voidonZoomFinished(ZoomEvent event) Called when a zoom gesture finishes.voidonZoomStarted(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, waitMethods 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:InteractionListenerCalled 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:
onRemovedin interfaceInteractionListener
-
onMousePressed
Description copied from interface:InteractionListenerCalled whenMouseEvent.MOUSE_PRESSEDis 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:
onMousePressedin interfaceInteractionListener- Parameters:
e- mouse pressed event
-
onMouseReleased
Description copied from interface:InteractionListenerCalled whenMouseEvent.MOUSE_RELEASEDis dispatched to the view.- Specified by:
onMouseReleasedin interfaceInteractionListener- Parameters:
e- mouse released event
-
onMouseDragged
Description copied from interface:InteractionListenerCalled whenMouseEvent.MOUSE_DRAGGEDis dispatched to the view.- Specified by:
onMouseDraggedin interfaceInteractionListener- Parameters:
e- mouse dragged event
-
onMouseMoved
Description copied from interface:InteractionListenerCalled whenMouseEvent.MOUSE_MOVEDis dispatched to the view.- Specified by:
onMouseMovedin interfaceInteractionListener- Parameters:
e- mouse moved event
-
onMouseExited
Description copied from interface:InteractionListenerCalled whenMouseEvent.MOUSE_EXITEDis dispatched to the view.- Specified by:
onMouseExitedin interfaceInteractionListener- Parameters:
e- the mouse event
-
onMouseEntered
Description copied from interface:InteractionListenerCalled whenMouseEvent.MOUSE_ENTEREDis dispatched to the view.- Specified by:
onMouseEnteredin interfaceInteractionListener- Parameters:
e- the mouse event
-
onScroll
Description copied from interface:InteractionListenerCalled whenScrollEvent.SCROLLis dispatched to the view.- Specified by:
onScrollin interfaceInteractionListener- Parameters:
e- scroll event
-
onKeyPressed
Description copied from interface:InteractionListenerCalled whenKeyEvent.KEY_PRESSEDis dispatched to the view.- Specified by:
onKeyPressedin interfaceInteractionListener- Parameters:
e- key pressed event
-
onKeyReleased
Description copied from interface:InteractionListenerCalled whenKeyEvent.KEY_RELEASEDis dispatched to the view.- Specified by:
onKeyReleasedin interfaceInteractionListener- Parameters:
e- key released event
-
onZoom
Description copied from interface:InteractionListenerCalled whenZoomEvent.ZOOMis dispatched to the view.- Specified by:
onZoomin interfaceInteractionListener- Parameters:
e- zoom event
-
onRotate
Description copied from interface:InteractionListenerCalled whenRotateEvent.ROTATEis dispatched to the view.- Specified by:
onRotatein interfaceInteractionListener- Parameters:
e- rotate event
-
onSwipeLeft
Description copied from interface:InteractionListenerCalled whenSwipeEvent.SWIPE_LEFTis dispatched to the view.- Specified by:
onSwipeLeftin interfaceInteractionListener- Parameters:
e- swipe left event
-
onSwipeDown
Description copied from interface:InteractionListenerCalled whenSwipeEvent.SWIPE_DOWNis dispatched to the view.- Specified by:
onSwipeDownin interfaceInteractionListener- Parameters:
e- swipe down event
-
onSwipeRight
Description copied from interface:InteractionListenerCalled whenSwipeEvent.SWIPE_RIGHTis dispatched to the view.- Specified by:
onSwipeRightin interfaceInteractionListener- Parameters:
e- swipe right event
-
onSwipeUp
Description copied from interface:InteractionListenerCalled whenSwipeEvent.SWIPE_UPis dispatched to the view.- Specified by:
onSwipeUpin interfaceInteractionListener- Parameters:
e- swipe up event
-
onRotationStarted
Description copied from interface:InteractionListenerCalled when a rotate gesture starts.- Specified by:
onRotationStartedin interfaceInteractionListener- Parameters:
event- the rotate event
-
onRotationFinished
Description copied from interface:InteractionListenerCalled when a rotate gesture finishes.- Specified by:
onRotationFinishedin interfaceInteractionListener- Parameters:
event- the rotate event
-
onScrollStarted
Description copied from interface:InteractionListenerCalled when a scroll gesture starts.- Specified by:
onScrollStartedin interfaceInteractionListener- Parameters:
event- the scroll event
-
onScrollFinished
Description copied from interface:InteractionListenerCalled when a scroll gesture finishes.- Specified by:
onScrollFinishedin interfaceInteractionListener- Parameters:
event- the scroll event
-
onZoomStarted
Description copied from interface:InteractionListenerCalled when a zoom gesture starts.- Specified by:
onZoomStartedin interfaceInteractionListener- Parameters:
event- the zoom event
-
onZoomFinished
Description copied from interface:InteractionListenerCalled when a zoom gesture finishes.- Specified by:
onZoomFinishedin interfaceInteractionListener- Parameters:
event- the zoom event
-