public class BullseyeTool extends ButtonTool implements MapEventDispatcher.MapEventDispatchListener
Modifier and Type | Field and Description |
---|---|
protected android.content.Context |
_context |
static java.lang.String |
BULLSEYE_COT_TYPE |
protected GeoPointMetaData |
centerLoc |
protected Marker |
centerMarker |
protected GeoPointMetaData |
edgeLoc |
protected Marker |
edgeMarker |
static int |
MAX_RADIUS |
static java.lang.String |
TOOL_IDENTIFIER |
_button, _imageButton
_identifier, _mapListenerCount, _mapView
Modifier and Type | Method and Description |
---|---|
void |
displayCoordinateDialog(GeoPointMetaData centerPoint)
Show the dialog to manually enter the center coordinate
|
void |
onMapEvent(MapEvent event) |
boolean |
onToolBegin(android.os.Bundle extras)
Called when this tool has been asked to start (and after the last tool has cleaned up)
|
void |
onToolEnd()
Called when this tool has been asked to end, either directly or by the user selecting a new
tool or possibly a new toolbar.
|
protected void |
prompt(int stringId) |
static void |
removeOverlay(Marker centerMarker,
boolean removeCenter) |
void |
saveBullseyeMarker(Marker bullseyeMarker) |
dispose, initButton, onButtonClicked, setActive
clearExtraListeners, endTool, findPoint, getActive, getIdentifier, onKey, popAllMapListeners, popMapListeners, pushMapListeners, requestBeginTool, requestEndTool, shouldEndOnBack
public static final java.lang.String TOOL_IDENTIFIER
public static final java.lang.String BULLSEYE_COT_TYPE
public static final int MAX_RADIUS
protected final android.content.Context _context
protected GeoPointMetaData centerLoc
protected GeoPointMetaData edgeLoc
protected Marker centerMarker
protected Marker edgeMarker
public boolean onToolBegin(android.os.Bundle extras)
Tool
onToolBegin
in class ButtonTool
extras
- extra params that were passed by the GUIpublic void onMapEvent(MapEvent event)
onMapEvent
in interface MapEventDispatcher.MapEventDispatchListener
public void saveBullseyeMarker(Marker bullseyeMarker)
public void displayCoordinateDialog(GeoPointMetaData centerPoint)
centerPoint
- - the point to populate the views withpublic void onToolEnd()
Tool
public static void removeOverlay(Marker centerMarker, boolean removeCenter)
protected void prompt(int stringId)