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, setActiveclearExtraListeners, endTool, findPoint, getActive, getIdentifier, onKey, popAllMapListeners, popMapListeners, pushMapListeners, requestBeginTool, requestEndTool, shouldEndOnBackprotected 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 ButtonToolpublic boolean onToolBegin(android.os.Bundle extras)
ToolonToolBegin in class ButtonToolextras - extra params that were passed by the GUIpublic void onToolEnd()
Toolpublic boolean run(EditAction action)
public void onMapEvent(MapEvent event)
onMapEvent in interface MapEventDispatcher.MapEventDispatchListenerpublic void onItemAdded(MapItem item, MapGroup newParent)
onItemAdded in interface MapItem.OnGroupChangedListenerpublic void onItemRemoved(MapItem item, MapGroup oldParent)
onItemRemoved in interface MapItem.OnGroupChangedListener