Class MapView.DefaultInteractionListener
- java.lang.Object
-
- com.esri.arcgisruntime.mapping.view.MapView.DefaultInteractionListener
-
- All Implemented Interfaces:
InteractionListener
- Enclosing class:
- MapView
public static class MapView.DefaultInteractionListener extends Object implements InteractionListener
Default listener to handle input events on the map view.- Since:
- 100.1.0
-
-
Field Summary
Fields Modifier and Type Field Description protected double[]
mLastDragPoint
The last drag point.protected boolean
mPanning
-
Constructor Summary
Constructors Modifier Constructor Description protected
DefaultInteractionListener(MapView mapView)
Creates default interaction listener.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onKeyPressed(KeyEvent e)
Called whenKeyEvent.KEY_PRESSED
is dispatched to the view.void
onKeyReleased(KeyEvent e)
Called whenKeyEvent.KEY_RELEASED
is dispatched to the view.void
onMouseDragged(MouseEvent e)
Called whenMouseEvent.MOUSE_DRAGGED
is dispatched to the view.void
onMousePressed(MouseEvent e)
Called whenMouseEvent.MOUSE_PRESSED
is dispatched to the view.void
onMouseReleased(MouseEvent e)
Called whenMouseEvent.MOUSE_RELEASED
is dispatched to the view.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.void
onRotate(RotateEvent e)
Called whenRotateEvent.ROTATE
is dispatched to the view.void
onRotationFinished(RotateEvent event)
Called when a rotate gesture finishes.void
onRotationStarted(RotateEvent event)
Called when a rotate gesture starts.void
onScroll(ScrollEvent e)
Called whenScrollEvent.SCROLL
is dispatched to the view.void
onScrollFinished(ScrollEvent event)
Called when a scroll gesture finishes.void
onScrollStarted(ScrollEvent event)
Called when a scroll gesture starts.void
onSwipeDown(SwipeEvent e)
Called whenSwipeEvent.SWIPE_DOWN
is dispatched to the view.void
onSwipeLeft(SwipeEvent e)
Called whenSwipeEvent.SWIPE_LEFT
is dispatched to the view.void
onSwipeRight(SwipeEvent e)
Called whenSwipeEvent.SWIPE_RIGHT
is dispatched to the view.void
onSwipeUp(SwipeEvent e)
Called whenSwipeEvent.SWIPE_UP
is dispatched to the view.void
onZoom(ZoomEvent e)
Called whenZoomEvent.ZOOM
is dispatched to the view.void
onZoomFinished(ZoomEvent event)
Called when a zoom gesture finishes.void
onZoomStarted(ZoomEvent event)
Called when a zoom gesture starts.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.esri.arcgisruntime.mapping.view.InteractionListener
onAdded, onKeyTyped, onMouseClicked, onMouseEntered, onMouseExited, onMouseMoved, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary
-
-
-
-
Constructor Detail
-
DefaultInteractionListener
protected DefaultInteractionListener(MapView mapView)
Creates default interaction listener.- Since:
- 100.1.0
-
-
Method Detail
-
onRemoved
public void onRemoved()
Description copied from interface:InteractionListener
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.- Specified by:
onRemoved
in interfaceInteractionListener
-
onMousePressed
public void onMousePressed(MouseEvent e)
Description copied from interface:InteractionListener
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.- Specified by:
onMousePressed
in interfaceInteractionListener
- Parameters:
e
- mouse pressed event
-
onMouseReleased
public void onMouseReleased(MouseEvent e)
Description copied from interface:InteractionListener
Called whenMouseEvent.MOUSE_RELEASED
is dispatched to the view.- Specified by:
onMouseReleased
in interfaceInteractionListener
- Parameters:
e
- mouse released event
-
onMouseDragged
public void onMouseDragged(MouseEvent e)
Description copied from interface:InteractionListener
Called whenMouseEvent.MOUSE_DRAGGED
is dispatched to the view.- Specified by:
onMouseDragged
in interfaceInteractionListener
- Parameters:
e
- mouse dragged event
-
onScroll
public void onScroll(ScrollEvent e)
Description copied from interface:InteractionListener
Called whenScrollEvent.SCROLL
is dispatched to the view.- Specified by:
onScroll
in interfaceInteractionListener
- Parameters:
e
- scroll event
-
onKeyPressed
public void onKeyPressed(KeyEvent e)
Description copied from interface:InteractionListener
Called whenKeyEvent.KEY_PRESSED
is dispatched to the view.- Specified by:
onKeyPressed
in interfaceInteractionListener
- Parameters:
e
- key pressed event
-
onKeyReleased
public void onKeyReleased(KeyEvent e)
Description copied from interface:InteractionListener
Called whenKeyEvent.KEY_RELEASED
is dispatched to the view.- Specified by:
onKeyReleased
in interfaceInteractionListener
- Parameters:
e
- key released event
-
onZoom
public void onZoom(ZoomEvent e)
Description copied from interface:InteractionListener
Called whenZoomEvent.ZOOM
is dispatched to the view.- Specified by:
onZoom
in interfaceInteractionListener
- Parameters:
e
- zoom event
-
onRotate
public void onRotate(RotateEvent e)
Description copied from interface:InteractionListener
Called whenRotateEvent.ROTATE
is dispatched to the view.- Specified by:
onRotate
in interfaceInteractionListener
- Parameters:
e
- rotate event
-
onSwipeLeft
public void onSwipeLeft(SwipeEvent e)
Description copied from interface:InteractionListener
Called whenSwipeEvent.SWIPE_LEFT
is dispatched to the view.- Specified by:
onSwipeLeft
in interfaceInteractionListener
- Parameters:
e
- swipe left event
-
onSwipeDown
public void onSwipeDown(SwipeEvent e)
Description copied from interface:InteractionListener
Called whenSwipeEvent.SWIPE_DOWN
is dispatched to the view.- Specified by:
onSwipeDown
in interfaceInteractionListener
- Parameters:
e
- swipe down event
-
onSwipeRight
public void onSwipeRight(SwipeEvent e)
Description copied from interface:InteractionListener
Called whenSwipeEvent.SWIPE_RIGHT
is dispatched to the view.- Specified by:
onSwipeRight
in interfaceInteractionListener
- Parameters:
e
- swipe right event
-
onSwipeUp
public void onSwipeUp(SwipeEvent e)
Description copied from interface:InteractionListener
Called whenSwipeEvent.SWIPE_UP
is dispatched to the view.- Specified by:
onSwipeUp
in interfaceInteractionListener
- Parameters:
e
- swipe up event
-
onRotationStarted
public void onRotationStarted(RotateEvent event)
Description copied from interface:InteractionListener
Called when a rotate gesture starts.- Specified by:
onRotationStarted
in interfaceInteractionListener
- Parameters:
event
- the rotate event
-
onRotationFinished
public void onRotationFinished(RotateEvent event)
Description copied from interface:InteractionListener
Called when a rotate gesture finishes.- Specified by:
onRotationFinished
in interfaceInteractionListener
- Parameters:
event
- the rotate event
-
onScrollStarted
public void onScrollStarted(ScrollEvent event)
Description copied from interface:InteractionListener
Called when a scroll gesture starts.- Specified by:
onScrollStarted
in interfaceInteractionListener
- Parameters:
event
- the scroll event
-
onScrollFinished
public void onScrollFinished(ScrollEvent event)
Description copied from interface:InteractionListener
Called when a scroll gesture finishes.- Specified by:
onScrollFinished
in interfaceInteractionListener
- Parameters:
event
- the scroll event
-
onZoomStarted
public void onZoomStarted(ZoomEvent event)
Description copied from interface:InteractionListener
Called when a zoom gesture starts.- Specified by:
onZoomStarted
in interfaceInteractionListener
- Parameters:
event
- the zoom event
-
onZoomFinished
public void onZoomFinished(ZoomEvent event)
Description copied from interface:InteractionListener
Called when a zoom gesture finishes.- Specified by:
onZoomFinished
in interfaceInteractionListener
- Parameters:
event
- the zoom event
-
-