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, mPositionPixels
SHADOW_X_SKEW, SHADOW_Y_SCALE
DEFAULT_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, set
drawAt, getSafeMenuId, getSafeMenuIdSequence, isEnabled, onDetach, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onScroll, onShowPress, onSingleTapUp, onTouchEvent, onTrackballEvent, setEnabled
protected 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)
Overlay
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.onSingleTapConfirmed
in class Overlay
public 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 Overlay
protected 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()