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
All Methods Instance Methods Default Methods Modifier and Type Method Description default 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
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.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
onZoom(ZoomEvent event)
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 Detail
-
onMouseClicked
default void onMouseClicked(MouseEvent event)
Called whenMouseEvent.MOUSE_CLICKED
is dispatched to the view.- Parameters:
event
- mouse clicked event- Since:
- 100.1.0
-
onMouseDragged
default void onMouseDragged(MouseEvent event)
Called whenMouseEvent.MOUSE_DRAGGED
is dispatched to the view.- Parameters:
event
- mouse dragged event- Since:
- 100.1.0
-
onMousePressed
default void onMousePressed(MouseEvent event)
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
default void onMouseReleased(MouseEvent event)
Called whenMouseEvent.MOUSE_RELEASED
is dispatched to the view.- Parameters:
event
- mouse released event- Since:
- 100.1.0
-
onMouseMoved
default void onMouseMoved(MouseEvent event)
Called whenMouseEvent.MOUSE_MOVED
is dispatched to the view.- Parameters:
event
- mouse moved event- Since:
- 100.1.0
-
onTouchMoved
default void onTouchMoved(TouchEvent event)
Called whenTouchEvent.TOUCH_MOVED
is dispatched to the view.- Parameters:
event
- touch moved event- Since:
- 100.1.0
-
onTouchPressed
default void onTouchPressed(TouchEvent event)
Called whenTouchEvent.TOUCH_PRESSED
is dispatched to the view.- Parameters:
event
- touch pressed event- Since:
- 100.1.0
-
onTouchReleased
default void onTouchReleased(TouchEvent event)
Called whenTouchEvent.TOUCH_RELEASED
is dispatched to the view.- Parameters:
event
- touch released event- Since:
- 100.1.0
-
onTouchStationary
default void onTouchStationary(TouchEvent event)
Called whenTouchEvent.TOUCH_STATIONARY
is dispatched to the view.- Parameters:
event
- touch stationary event- Since:
- 100.1.0
-
onScroll
default void onScroll(ScrollEvent event)
Called whenScrollEvent.SCROLL
is dispatched to the view.- Parameters:
event
- scroll event- Since:
- 100.1.0
-
onKeyPressed
default void onKeyPressed(KeyEvent event)
Called whenKeyEvent.KEY_PRESSED
is dispatched to the view.- Parameters:
event
- key pressed event- Since:
- 100.1.0
-
onKeyReleased
default void onKeyReleased(KeyEvent event)
Called whenKeyEvent.KEY_RELEASED
is dispatched to the view.- Parameters:
event
- key released event- Since:
- 100.1.0
-
onKeyTyped
default void onKeyTyped(KeyEvent event)
Called whenKeyEvent.KEY_TYPED
is dispatched to the view.- Parameters:
event
- key typed event- Since:
- 100.1.0
-
onZoom
default void onZoom(ZoomEvent event)
Called whenZoomEvent.ZOOM
is dispatched to the view.- Parameters:
event
- zoom event- Since:
- 100.1.0
-
onRotate
default void onRotate(RotateEvent event)
Called whenRotateEvent.ROTATE
is dispatched to the view.- Parameters:
event
- rotate event- Since:
- 100.1.0
-
onSwipeDown
default void onSwipeDown(SwipeEvent event)
Called whenSwipeEvent.SWIPE_DOWN
is dispatched to the view.- Parameters:
event
- swipe down event- Since:
- 100.1.0
-
onSwipeLeft
default void onSwipeLeft(SwipeEvent event)
Called whenSwipeEvent.SWIPE_LEFT
is dispatched to the view.- Parameters:
event
- swipe left event- Since:
- 100.1.0
-
onSwipeRight
default void onSwipeRight(SwipeEvent event)
Called whenSwipeEvent.SWIPE_RIGHT
is dispatched to the view.- Parameters:
event
- swipe right event- Since:
- 100.1.0
-
onSwipeUp
default void onSwipeUp(SwipeEvent event)
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
default void onMouseEntered(MouseEvent event)
Called whenMouseEvent.MOUSE_ENTERED
is dispatched to the view.- Parameters:
event
- the mouse event- Since:
- 100.6.0
-
onMouseExited
default void onMouseExited(MouseEvent event)
Called whenMouseEvent.MOUSE_EXITED
is 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
-
-