public class DrawingRectangleCreationTool extends Tool implements MapEventDispatcher.MapEventDispatchListener
Modifier and Type | Field and Description |
---|---|
protected MapGroup |
_drawingGroup |
static java.lang.String |
TAG |
static java.lang.String |
TOOL_IDENTIFIER |
_identifier, _mapListenerCount
Constructor and Description |
---|
DrawingRectangleCreationTool(MapView mapView,
MapGroup drawingGroup,
android.widget.ImageButton button)
CONSTRUCTOR
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
INHERITED METHODS
|
protected void |
initButton()
Performs button initialization, setting up onclick listeners etc.
|
void |
onMapEvent(MapEvent event)
MAP LISTENERS
|
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 |
setActive(boolean active)
Called to set whether a tool is actively being used.
|
clearExtraListeners, endTool, findPoint, getActive, getIdentifier, onKey, popAllMapListeners, popMapListeners, pushMapListeners, requestBeginTool, requestEndTool, shouldEndOnBack
public static final java.lang.String TAG
protected final MapGroup _drawingGroup
public static final java.lang.String TOOL_IDENTIFIER
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
protected void initButton()
protected void setActive(boolean active)
Tool