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 voidonAdded()Called on the current interaction listener when it is set on the view.default voidonKeyPressed(KeyEvent event) Called whenKeyEvent.KEY_PRESSEDis dispatched to the view.default voidonKeyReleased(KeyEvent event) Called whenKeyEvent.KEY_RELEASEDis dispatched to the view.default voidonKeyTyped(KeyEvent event) Called whenKeyEvent.KEY_TYPEDis dispatched to the view.default voidonMouseClicked(MouseEvent event) Called whenMouseEvent.MOUSE_CLICKEDis dispatched to the view.default voidonMouseDragged(MouseEvent event) Called whenMouseEvent.MOUSE_DRAGGEDis dispatched to the view.default voidonMouseEntered(MouseEvent event) Called whenMouseEvent.MOUSE_ENTEREDis dispatched to the view.default voidonMouseExited(MouseEvent event) Called whenMouseEvent.MOUSE_EXITEDis dispatched to the view.default voidonMouseMoved(MouseEvent event) Called whenMouseEvent.MOUSE_MOVEDis dispatched to the view.default voidonMousePressed(MouseEvent event) Called whenMouseEvent.MOUSE_PRESSEDis dispatched to the view.default voidonMouseReleased(MouseEvent event) Called whenMouseEvent.MOUSE_RELEASEDis dispatched to the view.default 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.default voidonRotate(RotateEvent event) Called whenRotateEvent.ROTATEis dispatched to the view.default voidonRotationFinished(RotateEvent event) Called when a rotate gesture finishes.default voidonRotationStarted(RotateEvent event) Called when a rotate gesture starts.default voidonScroll(ScrollEvent event) Called whenScrollEvent.SCROLLis dispatched to the view.default voidonScrollFinished(ScrollEvent event) Called when a scroll gesture finishes.default voidonScrollStarted(ScrollEvent event) Called when a scroll gesture starts.default voidonSwipeDown(SwipeEvent event) Called whenSwipeEvent.SWIPE_DOWNis dispatched to the view.default voidonSwipeLeft(SwipeEvent event) Called whenSwipeEvent.SWIPE_LEFTis dispatched to the view.default voidonSwipeRight(SwipeEvent event) Called whenSwipeEvent.SWIPE_RIGHTis dispatched to the view.default voidonSwipeUp(SwipeEvent event) Called whenSwipeEvent.SWIPE_UPis dispatched to the view.default voidonTouchMoved(TouchEvent event) Called whenTouchEvent.TOUCH_MOVEDis dispatched to the view.default voidonTouchPressed(TouchEvent event) Called whenTouchEvent.TOUCH_PRESSEDis dispatched to the view.default voidonTouchReleased(TouchEvent event) Called whenTouchEvent.TOUCH_RELEASEDis dispatched to the view.default voidonTouchStationary(TouchEvent event) Called whenTouchEvent.TOUCH_STATIONARYis dispatched to the view.default voidCalled whenZoomEvent.ZOOMis dispatched to the view.default voidonZoomFinished(ZoomEvent event) Called when a zoom gesture finishes.default voidonZoomStarted(ZoomEvent event) Called when a zoom gesture starts.
-
Method Details
-
onMouseClicked
Called whenMouseEvent.MOUSE_CLICKEDis dispatched to the view.- Parameters:
event- mouse clicked event- Since:
- 100.1.0
-
onMouseDragged
Called whenMouseEvent.MOUSE_DRAGGEDis dispatched to the view.- Parameters:
event- mouse dragged event- Since:
- 100.1.0
-
onMousePressed
Called 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.- Parameters:
event- mouse pressed event- Since:
- 100.1.0
-
onMouseReleased
Called whenMouseEvent.MOUSE_RELEASEDis dispatched to the view.- Parameters:
event- mouse released event- Since:
- 100.1.0
-
onMouseMoved
Called whenMouseEvent.MOUSE_MOVEDis dispatched to the view.- Parameters:
event- mouse moved event- Since:
- 100.1.0
-
onTouchMoved
Called whenTouchEvent.TOUCH_MOVEDis dispatched to the view.- Parameters:
event- touch moved event- Since:
- 100.1.0
-
onTouchPressed
Called whenTouchEvent.TOUCH_PRESSEDis dispatched to the view.- Parameters:
event- touch pressed event- Since:
- 100.1.0
-
onTouchReleased
Called whenTouchEvent.TOUCH_RELEASEDis dispatched to the view.- Parameters:
event- touch released event- Since:
- 100.1.0
-
onTouchStationary
Called whenTouchEvent.TOUCH_STATIONARYis dispatched to the view.- Parameters:
event- touch stationary event- Since:
- 100.1.0
-
onScroll
Called whenScrollEvent.SCROLLis dispatched to the view.- Parameters:
event- scroll event- Since:
- 100.1.0
-
onKeyPressed
Called whenKeyEvent.KEY_PRESSEDis dispatched to the view.- Parameters:
event- key pressed event- Since:
- 100.1.0
-
onKeyReleased
Called whenKeyEvent.KEY_RELEASEDis dispatched to the view.- Parameters:
event- key released event- Since:
- 100.1.0
-
onKeyTyped
Called whenKeyEvent.KEY_TYPEDis dispatched to the view.- Parameters:
event- key typed event- Since:
- 100.1.0
-
onZoom
Called whenZoomEvent.ZOOMis dispatched to the view.- Parameters:
event- zoom event- Since:
- 100.1.0
-
onRotate
Called whenRotateEvent.ROTATEis dispatched to the view.- Parameters:
event- rotate event- Since:
- 100.1.0
-
onSwipeDown
Called whenSwipeEvent.SWIPE_DOWNis dispatched to the view.- Parameters:
event- swipe down event- Since:
- 100.1.0
-
onSwipeLeft
Called whenSwipeEvent.SWIPE_LEFTis dispatched to the view.- Parameters:
event- swipe left event- Since:
- 100.1.0
-
onSwipeRight
Called whenSwipeEvent.SWIPE_RIGHTis dispatched to the view.- Parameters:
event- swipe right event- Since:
- 100.1.0
-
onSwipeUp
Called whenSwipeEvent.SWIPE_UPis 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_ENTEREDis dispatched to the view.- Parameters:
event- the mouse event- Since:
- 100.6.0
-
onMouseExited
Called whenMouseEvent.MOUSE_EXITEDis 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
-