public class GridTool extends Tool implements MapEventDispatcher.MapEventDispatchListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GRID_UID |
static int |
MAX_GRID_EXTENT |
static int |
MAX_GRID_LINES |
static java.lang.String |
TOOL_IDENTIFIER |
_identifier, _mapListenerCount, _mapView
Constructor and Description |
---|
GridTool(MapView mapView,
android.widget.Button button) |
Modifier and Type | Method and Description |
---|---|
void |
deleteGrid() |
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 GRID_UID
public static final java.lang.String TOOL_IDENTIFIER
public static final int MAX_GRID_LINES
public static final int MAX_GRID_EXTENT
public GridTool(MapView mapView, android.widget.Button button)
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 dispose()
Tool
public void onMapEvent(MapEvent event)
onMapEvent
in interface MapEventDispatcher.MapEventDispatchListener
public void deleteGrid()