public abstract class ClickableIconOverlay<DataType> extends IconOverlay
Overlay.Snappable| Modifier and Type | Field and Description |
|---|---|
protected int |
mId |
ANCHOR_BOTTOM, ANCHOR_CENTER, ANCHOR_LEFT, ANCHOR_RIGHT, ANCHOR_TOP, mAlpha, mAnchorU, mAnchorV, mBearing, mFlat, mIcon, mPosition, mPositionPixelsmBounds, SHADOW_X_SKEW, SHADOW_Y_SCALEDEFAULT_ZOOMLEVEL_MINIMAP_DIFFERENCE, NOT_SET| Modifier | Constructor and Description |
|---|---|
protected |
ClickableIconOverlay(DataType data)
save to be called in non-gui-thread
|
| Modifier and Type | Method and Description |
|---|---|
static ClickableIconOverlay |
find(List<ClickableIconOverlay> list,
int id) |
DataType |
getData() |
int |
getID() |
protected boolean |
hitTest(MotionEvent event,
MapView mapView)
|
boolean |
onLongPress(MotionEvent event,
MapView mapView)
By default does nothing (
return false). |
protected abstract boolean |
onMarkerClicked(MapView mapView,
int markerId,
IGeoPoint makerPosition,
DataType markerData) |
protected boolean |
onMarkerLongPress(MapView mapView,
int markerId,
IGeoPoint geoPosition,
Object data) |
boolean |
onSingleTapConfirmed(MotionEvent event,
MapView mapView)
By default does nothing (
return false). |
ClickableIconOverlay |
set(int id,
IGeoPoint position,
Drawable icon,
DataType data)
used to recycle this
|
draw, getPosition, moveTo, moveTo, setdraw, drawAt, getBounds, getSafeMenuId, getSafeMenuIdSequence, isEnabled, onDetach, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onPause, onResume, onScroll, onShowPress, onSingleTapUp, onTouchEvent, onTrackballEvent, setEnabledprotected ClickableIconOverlay(DataType data)
protected abstract boolean onMarkerClicked(MapView mapView, int markerId, IGeoPoint makerPosition, DataType markerData)
public ClickableIconOverlay set(int id, IGeoPoint position, Drawable icon, DataType data)
protected boolean hitTest(MotionEvent event, MapView mapView)
public boolean onSingleTapConfirmed(MotionEvent event, MapView mapView)
Overlayreturn false). If you handled the Event, return true
, otherwise return false. If you returned true none of the following Overlays
or the underlying MapView has the chance to handle this event.onSingleTapConfirmed in class Overlaypublic boolean onLongPress(MotionEvent event, MapView mapView)
return false). If you handled the Event, return true
, otherwise return false. If you returned true none of the following Overlays
or the underlying MapView has the chance to handle this event.onLongPress in class Overlayprotected boolean onMarkerLongPress(MapView mapView, int markerId, IGeoPoint geoPosition, Object data)
public static ClickableIconOverlay find(List<ClickableIconOverlay> list, int id)
public int getID()
public DataType getData()