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 Details

    • onMouseClicked

      default void onMouseClicked(MouseEvent event)
      Called when MouseEvent.MOUSE_CLICKED is dispatched to the view.
      Parameters:
      event - mouse clicked event
      Since:
      100.1.0
    • onMouseDragged

      default void onMouseDragged(MouseEvent event)
      Called when MouseEvent.MOUSE_DRAGGED is dispatched to the view.
      Parameters:
      event - mouse dragged event
      Since:
      100.1.0
    • onMousePressed

      default void onMousePressed(MouseEvent event)
      Called when MouseEvent.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 when MouseEvent.MOUSE_RELEASED is dispatched to the view.
      Parameters:
      event - mouse released event
      Since:
      100.1.0
    • onMouseMoved

      default void onMouseMoved(MouseEvent event)
      Called when MouseEvent.MOUSE_MOVED is dispatched to the view.
      Parameters:
      event - mouse moved event
      Since:
      100.1.0
    • onTouchMoved

      default void onTouchMoved(TouchEvent event)
      Called when TouchEvent.TOUCH_MOVED is dispatched to the view.
      Parameters:
      event - touch moved event
      Since:
      100.1.0
    • onTouchPressed

      default void onTouchPressed(TouchEvent event)
      Called when TouchEvent.TOUCH_PRESSED is dispatched to the view.
      Parameters:
      event - touch pressed event
      Since:
      100.1.0
    • onTouchReleased

      default void onTouchReleased(TouchEvent event)
      Called when TouchEvent.TOUCH_RELEASED is dispatched to the view.
      Parameters:
      event - touch released event
      Since:
      100.1.0
    • onTouchStationary

      default void onTouchStationary(TouchEvent event)
      Called when TouchEvent.TOUCH_STATIONARY is dispatched to the view.
      Parameters:
      event - touch stationary event
      Since:
      100.1.0
    • onScroll

      default void onScroll(ScrollEvent event)
      Called when ScrollEvent.SCROLL is dispatched to the view.
      Parameters:
      event - scroll event
      Since:
      100.1.0
    • onKeyPressed

      default void onKeyPressed(KeyEvent event)
      Called when KeyEvent.KEY_PRESSED is dispatched to the view.
      Parameters:
      event - key pressed event
      Since:
      100.1.0
    • onKeyReleased

      default void onKeyReleased(KeyEvent event)
      Called when KeyEvent.KEY_RELEASED is dispatched to the view.
      Parameters:
      event - key released event
      Since:
      100.1.0
    • onKeyTyped

      default void onKeyTyped(KeyEvent event)
      Called when KeyEvent.KEY_TYPED is dispatched to the view.
      Parameters:
      event - key typed event
      Since:
      100.1.0
    • onZoom

      default void onZoom(ZoomEvent event)
      Called when ZoomEvent.ZOOM is dispatched to the view.
      Parameters:
      event - zoom event
      Since:
      100.1.0
    • onRotate

      default void onRotate(RotateEvent event)
      Called when RotateEvent.ROTATE is dispatched to the view.
      Parameters:
      event - rotate event
      Since:
      100.1.0
    • onSwipeDown

      default void onSwipeDown(SwipeEvent event)
      Called when SwipeEvent.SWIPE_DOWN is dispatched to the view.
      Parameters:
      event - swipe down event
      Since:
      100.1.0
    • onSwipeLeft

      default void onSwipeLeft(SwipeEvent event)
      Called when SwipeEvent.SWIPE_LEFT is dispatched to the view.
      Parameters:
      event - swipe left event
      Since:
      100.1.0
    • onSwipeRight

      default void onSwipeRight(SwipeEvent event)
      Called when SwipeEvent.SWIPE_RIGHT is dispatched to the view.
      Parameters:
      event - swipe right event
      Since:
      100.1.0
    • onSwipeUp

      default void onSwipeUp(SwipeEvent event)
      Called when SwipeEvent.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, when GeoView.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 the GeoView.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 when MouseEvent.MOUSE_ENTERED is dispatched to the view.
      Parameters:
      event - the mouse event
      Since:
      100.6.0
    • onMouseExited

      default void onMouseExited(MouseEvent event)
      Called when MouseEvent.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