Interface InteractionListener
-
- All Known Implementing Classes:
MapView.DefaultInteractionListener,SceneView.DefaultInteractionListener
public interface InteractionListenerDefines 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
All Methods Instance Methods Default Methods Modifier and Type Method Description default 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 voidonRemoved()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 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 voidonZoom(ZoomEvent event)Called 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 Detail
-
onMouseClicked
default void onMouseClicked(MouseEvent event)
Called whenMouseEvent.MOUSE_CLICKEDis dispatched to the view.- Parameters:
event- mouse clicked event- Since:
- 100.1.0
-
onMouseDragged
default void onMouseDragged(MouseEvent event)
Called whenMouseEvent.MOUSE_DRAGGEDis dispatched to the view.- Parameters:
event- mouse dragged event- Since:
- 100.1.0
-
onMousePressed
default void onMousePressed(MouseEvent event)
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
default void onMouseReleased(MouseEvent event)
Called whenMouseEvent.MOUSE_RELEASEDis dispatched to the view.- Parameters:
event- mouse released event- Since:
- 100.1.0
-
onMouseMoved
default void onMouseMoved(MouseEvent event)
Called whenMouseEvent.MOUSE_MOVEDis dispatched to the view.- Parameters:
event- mouse moved event- Since:
- 100.1.0
-
onTouchMoved
default void onTouchMoved(TouchEvent event)
Called whenTouchEvent.TOUCH_MOVEDis dispatched to the view.- Parameters:
event- touch moved event- Since:
- 100.1.0
-
onTouchPressed
default void onTouchPressed(TouchEvent event)
Called whenTouchEvent.TOUCH_PRESSEDis dispatched to the view.- Parameters:
event- touch pressed event- Since:
- 100.1.0
-
onTouchReleased
default void onTouchReleased(TouchEvent event)
Called whenTouchEvent.TOUCH_RELEASEDis dispatched to the view.- Parameters:
event- touch released event- Since:
- 100.1.0
-
onTouchStationary
default void onTouchStationary(TouchEvent event)
Called whenTouchEvent.TOUCH_STATIONARYis dispatched to the view.- Parameters:
event- touch stationary event- Since:
- 100.1.0
-
onScroll
default void onScroll(ScrollEvent event)
Called whenScrollEvent.SCROLLis dispatched to the view.- Parameters:
event- scroll event- Since:
- 100.1.0
-
onKeyPressed
default void onKeyPressed(KeyEvent event)
Called whenKeyEvent.KEY_PRESSEDis dispatched to the view.- Parameters:
event- key pressed event- Since:
- 100.1.0
-
onKeyReleased
default void onKeyReleased(KeyEvent event)
Called whenKeyEvent.KEY_RELEASEDis dispatched to the view.- Parameters:
event- key released event- Since:
- 100.1.0
-
onKeyTyped
default void onKeyTyped(KeyEvent event)
Called whenKeyEvent.KEY_TYPEDis dispatched to the view.- Parameters:
event- key typed event- Since:
- 100.1.0
-
onZoom
default void onZoom(ZoomEvent event)
Called whenZoomEvent.ZOOMis dispatched to the view.- Parameters:
event- zoom event- Since:
- 100.1.0
-
onRotate
default void onRotate(RotateEvent event)
Called whenRotateEvent.ROTATEis dispatched to the view.- Parameters:
event- rotate event- Since:
- 100.1.0
-
onSwipeDown
default void onSwipeDown(SwipeEvent event)
Called whenSwipeEvent.SWIPE_DOWNis dispatched to the view.- Parameters:
event- swipe down event- Since:
- 100.1.0
-
onSwipeLeft
default void onSwipeLeft(SwipeEvent event)
Called whenSwipeEvent.SWIPE_LEFTis dispatched to the view.- Parameters:
event- swipe left event- Since:
- 100.1.0
-
onSwipeRight
default void onSwipeRight(SwipeEvent event)
Called whenSwipeEvent.SWIPE_RIGHTis dispatched to the view.- Parameters:
event- swipe right event- Since:
- 100.1.0
-
onSwipeUp
default void onSwipeUp(SwipeEvent event)
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
default void onMouseEntered(MouseEvent event)
Called whenMouseEvent.MOUSE_ENTEREDis dispatched to the view.- Parameters:
event- the mouse event- Since:
- 100.6.0
-
onMouseExited
default void onMouseExited(MouseEvent event)
Called whenMouseEvent.MOUSE_EXITEDis dispatched to the view.- Parameters:
event- the mouse event- Since:
- 100.6.0
-
onScrollStarted
default void onScrollStarted(ScrollEvent event)
Called when a scroll gesture starts.- Parameters:
event- the scroll event- Since:
- 100.7.0
-
onScrollFinished
default void onScrollFinished(ScrollEvent event)
Called when a scroll gesture finishes.- Parameters:
event- the scroll event- Since:
- 100.7.0
-
onZoomStarted
default void onZoomStarted(ZoomEvent event)
Called when a zoom gesture starts.- Parameters:
event- the zoom event- Since:
- 100.7.0
-
onZoomFinished
default void onZoomFinished(ZoomEvent event)
Called when a zoom gesture finishes.- Parameters:
event- the zoom event- Since:
- 100.7.0
-
onRotationStarted
default void onRotationStarted(RotateEvent event)
Called when a rotate gesture starts.- Parameters:
event- the rotate event- Since:
- 100.7.0
-
onRotationFinished
default void onRotationFinished(RotateEvent event)
Called when a rotate gesture finishes.- Parameters:
event- the rotate event- Since:
- 100.7.0
-
-