
public class SimpleFastPointOverlay extends Overlay
| Modifier and Type | Class and Description |
|---|---|
static interface |
SimpleFastPointOverlay.OnClickListener |
static interface |
SimpleFastPointOverlay.PointAdapter |
class |
SimpleFastPointOverlay.StyledLabelledPoint
Just a light internal class for storing point data
|
Overlay.SnappablemBounds, SHADOW_X_SKEW, SHADOW_Y_SCALEDEFAULT_ZOOMLEVEL_MINIMAP_DIFFERENCE, NOT_SET| Constructor and Description |
|---|
SimpleFastPointOverlay(SimpleFastPointOverlay.PointAdapter pointList) |
SimpleFastPointOverlay(SimpleFastPointOverlay.PointAdapter pointList,
SimpleFastPointOverlayOptions style) |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(Canvas canvas,
MapView mapView,
boolean b)
Draw the overlay over the map.
|
protected void |
drawPointAt(Canvas canvas,
float x,
float y,
boolean showLabel,
String label,
Paint pointStyle,
Paint textStyle,
MapView pMapView) |
BoundingBox |
getBoundingBox() |
Integer |
getSelectedPoint() |
boolean |
onSingleTapConfirmed(MotionEvent event,
MapView mapView)
Default action on tap is to select the nearest point.
|
boolean |
onTouchEvent(MotionEvent event,
MapView mapView)
You can prevent all(!) other Touch-related events from happening!
By default does nothing ( return false). |
void |
setOnClickListener(SimpleFastPointOverlay.OnClickListener listener) |
void |
setSelectedPoint(Integer toSelect)
Sets the highlighted point.
|
draw, drawAt, getBounds, getSafeMenuId, getSafeMenuIdSequence, isEnabled, onDetach, onDoubleTap, onDoubleTapEvent, onDown, onFling, onKeyDown, onKeyUp, onLongPress, onPause, onResume, onScroll, onShowPress, onSingleTapUp, onTrackballEvent, setEnabledpublic SimpleFastPointOverlay(SimpleFastPointOverlay.PointAdapter pointList, SimpleFastPointOverlayOptions style)
public SimpleFastPointOverlay(SimpleFastPointOverlay.PointAdapter pointList)
public boolean onTouchEvent(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.onTouchEvent in class Overlaypublic boolean onSingleTapConfirmed(MotionEvent event, MapView mapView)
onSingleTapConfirmed in class Overlaypublic void setSelectedPoint(Integer toSelect)
toSelect - The index of the point (zero-based) in the original list.public Integer getSelectedPoint()
public BoundingBox getBoundingBox()
public void setOnClickListener(SimpleFastPointOverlay.OnClickListener listener)
public void draw(Canvas canvas, MapView mapView, boolean b)
OverlayOverlay.draw(Canvas, Projection) instead (cf. MapSnapshot