public class EditablePolylineEditTool extends ButtonTool implements Undoable, MapEventDispatcher.MapEventDispatchListener, EditablePolyline.OnEditableChangedListener
Modifier and Type | Field and Description |
---|---|
protected android.content.Context |
_context |
protected boolean |
_handleUndo |
protected int |
_insertPointIndex |
protected EditablePolyline |
_poly |
protected android.widget.Button |
_undoButton |
protected boolean |
_vertsVisible |
protected TextContainer |
container |
protected java.lang.String |
MAIN_PROMPT |
static java.lang.String |
TAG |
protected java.lang.String |
TAP_PROMPT |
protected boolean |
twoListenerPushesDeep |
_button, _imageButton
_identifier, _mapListenerCount, _mapView
Constructor and Description |
---|
EditablePolylineEditTool(MapView mapView,
android.widget.Button button,
android.widget.Button undoButton,
java.lang.String identifier) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Called only by the parent during final cleanup activities.
|
protected void |
insertPoint(EditablePolyline route,
int index) |
protected boolean |
multipleVerticesHit() |
void |
onEditableChanged(EditablePolyline polyline) |
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.
|
boolean |
run(EditAction action) |
protected void |
showMainPrompt() |
void |
undo() |
initButton, onButtonClicked, setActive
clearExtraListeners, endTool, findPoint, getActive, getIdentifier, onKey, popAllMapListeners, popMapListeners, pushMapListeners, requestBeginTool, requestEndTool, shouldEndOnBack
protected final android.content.Context _context
protected EditablePolyline _poly
protected boolean twoListenerPushesDeep
protected int _insertPointIndex
protected android.widget.Button _undoButton
protected boolean _vertsVisible
protected boolean _handleUndo
protected TextContainer container
protected java.lang.String MAIN_PROMPT
protected java.lang.String TAP_PROMPT
public static final java.lang.String TAG
public EditablePolylineEditTool(MapView mapView, android.widget.Button button, android.widget.Button undoButton, java.lang.String identifier)
public void dispose()
Tool
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 void onEditableChanged(EditablePolyline polyline)
onEditableChanged
in interface EditablePolyline.OnEditableChangedListener
protected void showMainPrompt()
public void onMapEvent(MapEvent event)
onMapEvent
in interface MapEventDispatcher.MapEventDispatchListener
protected void insertPoint(EditablePolyline route, int index)
public boolean run(EditAction action)
protected boolean multipleVerticesHit()