|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.android.map.MapOnTouchListener
public class MapOnTouchListener
An interface definition for a callback to be invoked when a touch event is dispatched to a MapView. The callback will be invoked before the touch event is given to the MapView.
Field Summary | |
---|---|
static int |
PINCH_ZOOM_TOLERANECE_INDEGREE
|
static int |
SENSITIVITY_TOLERANCE_INPIXEL
|
Constructor Summary | |
---|---|
MapOnTouchListener(android.content.Context context,
MapView view)
Instantiates an object of MapOnTouchListener with the activity context and the MapView. |
Method Summary | |
---|---|
boolean |
onDoubleTap(android.view.MotionEvent point)
Notified when a single-pointer-double-tap gesture occurs. |
boolean |
onDragPointerMove(android.view.MotionEvent from,
android.view.MotionEvent to)
Notified when a part of a single touch drag gesture event occurs. |
boolean |
onDragPointerUp(android.view.MotionEvent from,
android.view.MotionEvent to)
Notified when a part of a single-touch-drag gesture event occurs. |
void |
onLongPress(android.view.MotionEvent point)
Notified when a long-press gesture occurs. |
void |
onMultiPointersSingleTap(android.view.MotionEvent event)
Notified when a two-pointers-single-tap gesture occurs. |
boolean |
onPinchPointersDown(android.view.MotionEvent event)
Notified when a part of a pinch gesture occurs. |
boolean |
onPinchPointersMove(android.view.MotionEvent event)
Notified when a part of a pinch gesture occurs. |
boolean |
onPinchPointersUp(android.view.MotionEvent event)
Notified when a part of a pinch gesture occurs. |
boolean |
onSingleTap(android.view.MotionEvent point)
Notified when a single-pointer-single-tap gesture occurs. |
boolean |
onTouch(android.view.View v,
android.view.MotionEvent event)
Called when a touch event is dispatched to a view. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int PINCH_ZOOM_TOLERANECE_INDEGREE
public static int SENSITIVITY_TOLERANCE_INPIXEL
Constructor Detail |
---|
public MapOnTouchListener(android.content.Context context, MapView view)
context
- the activity context.view
- the MapView that will be dispatching the events.Method Detail |
---|
public boolean onTouch(android.view.View v, android.view.MotionEvent event)
onTouch
in interface android.view.View.OnTouchListener
public boolean onDragPointerMove(android.view.MotionEvent from, android.view.MotionEvent to)
onDragPointerMove
in interface MapGestureDetector.OnGestureListener
from
- The MotionEvent object containing full information about the "from" point.to
- The MotionEvent object containing full information about the "to" point.
onDragPointerUp(MotionEvent, MotionEvent)
public boolean onDragPointerUp(android.view.MotionEvent from, android.view.MotionEvent to)
onDragPointerUp
in interface MapGestureDetector.OnGestureListener
from
- The MotionEvent object containing full information about the "from" point.to
- The MotionEvent object containing full information about the "to" point.
onDragPointerMove(MotionEvent, MotionEvent)
public boolean onPinchPointersDown(android.view.MotionEvent event)
onPinchPointersDown
in interface MapGestureDetector.OnGestureListener
onPinchPointersMove(MotionEvent)
,
onPinchPointersUp(MotionEvent)
public boolean onPinchPointersMove(android.view.MotionEvent event)
float x1 = event.getX(0), y1 = event.getY(0), x2 = event.getX(1), y2 = event.getY(1);
onPinchPointersMove
in interface MapGestureDetector.OnGestureListener
onPinchPointersDown(MotionEvent)
,
onPinchPointersUp(MotionEvent)
public boolean onPinchPointersUp(android.view.MotionEvent event)
onPinchPointersUp
in interface MapGestureDetector.OnGestureListener
onPinchPointersDown(MotionEvent)
,
onPinchPointersMove(MotionEvent)
public boolean onDoubleTap(android.view.MotionEvent point)
onDoubleTap
in interface MapGestureDetector.OnGestureListener
public void onMultiPointersSingleTap(android.view.MotionEvent event)
onMultiPointersSingleTap
in interface MapGestureDetector.OnGestureListener
public void onLongPress(android.view.MotionEvent point)
onLongPress
in interface MapGestureDetector.OnGestureListener
point
- The initial on down motion event that started the longpress.public boolean onSingleTap(android.view.MotionEvent point)
onSingleTap
in interface MapGestureDetector.OnGestureListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |