Module com.esri.arcgisruntime
Interface InteractionListener
- All Known Implementing Classes:
MapView.DefaultInteractionListener
,SceneView.DefaultInteractionListener
public interface InteractionListener
Defines a listener to handle various input events on a view.
To change the default interaction handlers on a MapView, set an instance of this type using
GeoView.setInteractionListener(InteractionListener)
.
- Since:
- 100.1.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
onAdded()
Called on the current interaction listener when it is set on the view.default void
onKeyPressed
(KeyEvent event) Called whenKeyEvent.KEY_PRESSED
is dispatched to the view.default void
onKeyReleased
(KeyEvent event) Called whenKeyEvent.KEY_RELEASED
is dispatched to the view.default void
onKeyTyped
(KeyEvent event) Called whenKeyEvent.KEY_TYPED
is dispatched to the view.default void
onMouseClicked
(MouseEvent event) Called whenMouseEvent.MOUSE_CLICKED
is dispatched to the view.default void
onMouseDragged
(MouseEvent event) Called whenMouseEvent.MOUSE_DRAGGED
is dispatched to the view.default void
onMouseEntered
(MouseEvent event) Called whenMouseEvent.MOUSE_ENTERED
is dispatched to the view.default void
onMouseExited
(MouseEvent event) Called whenMouseEvent.MOUSE_EXITED
is dispatched to the view.default void
onMouseMoved
(MouseEvent event) Called whenMouseEvent.MOUSE_MOVED
is dispatched to the view.default void
onMousePressed
(MouseEvent event) Called whenMouseEvent.MOUSE_PRESSED
is dispatched to the view.default void
onMouseReleased
(MouseEvent event) Called whenMouseEvent.MOUSE_RELEASED
is dispatched to the view.default 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.default void
onRotate
(RotateEvent event) Called whenRotateEvent.ROTATE
is dispatched to the view.default void
onRotationFinished
(RotateEvent event) Called when a rotate gesture finishes.default void
onRotationStarted
(RotateEvent event) Called when a rotate gesture starts.default void
onScroll
(ScrollEvent event) Called whenScrollEvent.SCROLL
is dispatched to the view.default void
onScrollFinished
(ScrollEvent event) Called when a scroll gesture finishes.default void
onScrollStarted
(ScrollEvent event) Called when a scroll gesture starts.default void
onSwipeDown
(SwipeEvent event) Called whenSwipeEvent.SWIPE_DOWN
is dispatched to the view.default void
onSwipeLeft
(SwipeEvent event) Called whenSwipeEvent.SWIPE_LEFT
is dispatched to the view.default void
onSwipeRight
(SwipeEvent event) Called whenSwipeEvent.SWIPE_RIGHT
is dispatched to the view.default void
onSwipeUp
(SwipeEvent event) Called whenSwipeEvent.SWIPE_UP
is dispatched to the view.default void
onTouchMoved
(TouchEvent event) Called whenTouchEvent.TOUCH_MOVED
is dispatched to the view.default void
onTouchPressed
(TouchEvent event) Called whenTouchEvent.TOUCH_PRESSED
is dispatched to the view.default void
onTouchReleased
(TouchEvent event) Called whenTouchEvent.TOUCH_RELEASED
is dispatched to the view.default void
onTouchStationary
(TouchEvent event) Called whenTouchEvent.TOUCH_STATIONARY
is dispatched to the view.default void
Called whenZoomEvent.ZOOM
is dispatched to the view.default void
onZoomFinished
(ZoomEvent event) Called when a zoom gesture finishes.default void
onZoomStarted
(ZoomEvent event) Called when a zoom gesture starts.
-
Method Details
-
onMouseClicked
Called whenMouseEvent.MOUSE_CLICKED
is dispatched to the view.- Parameters:
event
- mouse clicked event- Since:
- 100.1.0
-
onMouseDragged
Called whenMouseEvent.MOUSE_DRAGGED
is dispatched to the view.- Parameters:
event
- mouse dragged event- Since:
- 100.1.0
-
onMousePressed
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.- Parameters:
event
- mouse pressed event- Since:
- 100.1.0
-
onMouseReleased
Called whenMouseEvent.MOUSE_RELEASED
is dispatched to the view.- Parameters:
event
- mouse released event- Since:
- 100.1.0
-
onMouseMoved
Called whenMouseEvent.MOUSE_MOVED
is dispatched to the view.- Parameters:
event
- mouse moved event- Since:
- 100.1.0
-
onTouchMoved
Called whenTouchEvent.TOUCH_MOVED
is dispatched to the view.- Parameters:
event
- touch moved event- Since:
- 100.1.0
-
onTouchPressed
Called whenTouchEvent.TOUCH_PRESSED
is dispatched to the view.- Parameters:
event
- touch pressed event- Since:
- 100.1.0
-
onTouchReleased
Called whenTouchEvent.TOUCH_RELEASED
is dispatched to the view.- Parameters:
event
- touch released event- Since:
- 100.1.0
-
onTouchStationary
Called whenTouchEvent.TOUCH_STATIONARY
is dispatched to the view.- Parameters:
event
- touch stationary event- Since:
- 100.1.0
-
onScroll
Called whenScrollEvent.SCROLL
is dispatched to the view.- Parameters:
event
- scroll event- Since:
- 100.1.0
-
onKeyPressed
Called whenKeyEvent.KEY_PRESSED
is dispatched to the view.- Parameters:
event
- key pressed event- Since:
- 100.1.0
-
onKeyReleased
Called whenKeyEvent.KEY_RELEASED
is dispatched to the view.- Parameters:
event
- key released event- Since:
- 100.1.0
-
onKeyTyped
Called whenKeyEvent.KEY_TYPED
is dispatched to the view.- Parameters:
event
- key typed event- Since:
- 100.1.0
-
onZoom
Called whenZoomEvent.ZOOM
is dispatched to the view.- Parameters:
event
- zoom event- Since:
- 100.1.0
-
onRotate
Called whenRotateEvent.ROTATE
is dispatched to the view.- Parameters:
event
- rotate event- Since:
- 100.1.0
-
onSwipeDown
Called whenSwipeEvent.SWIPE_DOWN
is dispatched to the view.- Parameters:
event
- swipe down event- Since:
- 100.1.0
-
onSwipeLeft
Called whenSwipeEvent.SWIPE_LEFT
is dispatched to the view.- Parameters:
event
- swipe left event- Since:
- 100.1.0
-
onSwipeRight
Called whenSwipeEvent.SWIPE_RIGHT
is dispatched to the view.- Parameters:
event
- swipe right event- Since:
- 100.1.0
-
onSwipeUp
Called whenSwipeEvent.SWIPE_UP
is dispatched to the view.- Parameters:
event
- swipe up event- Since:
- 100.1.0
-
onAdded
default void onAdded()Called on the current interaction listener when it is set on the view. For example, whenGeoView.setInteractionListener(InteractionListener)
is called with this interaction listener.- Since:
- 100.1.0
-
onRemoved
default void onRemoved()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.- Since:
- 100.1.0
-
onMouseEntered
Called whenMouseEvent.MOUSE_ENTERED
is dispatched to the view.- Parameters:
event
- the mouse event- Since:
- 100.6.0
-
onMouseExited
Called whenMouseEvent.MOUSE_EXITED
is dispatched to the view.- Parameters:
event
- the mouse event- Since:
- 100.6.0
-
onScrollStarted
Called when a scroll gesture starts.- Parameters:
event
- the scroll event- Since:
- 100.7.0
-
onScrollFinished
Called when a scroll gesture finishes.- Parameters:
event
- the scroll event- Since:
- 100.7.0
-
onZoomStarted
Called when a zoom gesture starts.- Parameters:
event
- the zoom event- Since:
- 100.7.0
-
onZoomFinished
Called when a zoom gesture finishes.- Parameters:
event
- the zoom event- Since:
- 100.7.0
-
onRotationStarted
Called when a rotate gesture starts.- Parameters:
event
- the rotate event- Since:
- 100.7.0
-
onRotationFinished
Called when a rotate gesture finishes.- Parameters:
event
- the rotate event- Since:
- 100.7.0
-