public class PolylineSelectTool extends Tool implements MapEventDispatcher.MapEventDispatchListener
Bundle extras = new Bundle(); ToolManagerBroadcastReceiver.getInstance().startTool( PolylineSelectTool.TOOL_IDENTIFIER, extras);Please note that the TOOL_IDENTIFER must be unique - otherwise issues might occur.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
static java.lang.String |
TOOL_FINISHED |
static java.lang.String |
TOOL_IDENTIFIER |
_identifier, _mapListenerCount, _mapView
Constructor and Description |
---|
PolylineSelectTool(MapView mapView) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Called only by the parent during final cleanup activities.
|
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.
|
clearExtraListeners, endTool, findPoint, getActive, getIdentifier, onKey, popAllMapListeners, popMapListeners, pushMapListeners, requestBeginTool, requestEndTool, setActive, shouldEndOnBack
public static final java.lang.String TAG
public static final java.lang.String TOOL_IDENTIFIER
public static final java.lang.String TOOL_FINISHED
public PolylineSelectTool(MapView mapView)
public void dispose()
Tool
public boolean onToolBegin(android.os.Bundle extras)
Tool
onToolBegin
in class Tool
extras
- extra params that were passed by the GUIpublic void onToolEnd()
Tool
public void onMapEvent(MapEvent event)
onMapEvent
in interface MapEventDispatcher.MapEventDispatchListener