public class CircleEditTool extends ButtonTool implements Undoable, MapItem.OnGroupChangedListener, MapEventDispatcher.MapEventDispatchListener
Modifier and Type | Class and Description |
---|---|
static class |
CircleEditTool.EditRadiusAction |
static class |
CircleEditTool.MovePointAction |
Modifier and Type | Field and Description |
---|---|
protected DrawingCircle |
_circle
FIELDS
|
protected android.widget.Button |
_undoButton |
static java.lang.String |
TOOL_IDENTIFIER |
_button, _imageButton
_identifier, _mapListenerCount, _mapView
Constructor and Description |
---|
CircleEditTool(MapView mapView,
android.widget.Button button,
android.widget.Button undoButton)
CONSTRUCTORS
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
INHERITED METHODS
|
void |
onItemAdded(MapItem item,
MapGroup newParent) |
void |
onItemRemoved(MapItem item,
MapGroup oldParent) |
void |
onMapEvent(MapEvent event)
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.
|
boolean |
run(EditAction action) |
void |
undo() |
initButton, onButtonClicked, setActive
clearExtraListeners, endTool, findPoint, getActive, getIdentifier, onKey, popAllMapListeners, popMapListeners, pushMapListeners, requestBeginTool, requestEndTool, shouldEndOnBack
protected DrawingCircle _circle
protected final android.widget.Button _undoButton
public static final java.lang.String TOOL_IDENTIFIER
public CircleEditTool(MapView mapView, android.widget.Button button, android.widget.Button undoButton)
public void dispose()
dispose
in class ButtonTool
public boolean onToolBegin(android.os.Bundle extras)
Tool
onToolBegin
in class ButtonTool
extras
- extra params that were passed by the GUIpublic void onToolEnd()
Tool
public boolean run(EditAction action)
public void onMapEvent(MapEvent event)
onMapEvent
in interface MapEventDispatcher.MapEventDispatchListener
public void onItemAdded(MapItem item, MapGroup newParent)
onItemAdded
in interface MapItem.OnGroupChangedListener
public void onItemRemoved(MapItem item, MapGroup oldParent)
onItemRemoved
in interface MapItem.OnGroupChangedListener