public class RouteEditTool extends EditablePolylineEditTool implements MapTouchController.DeconflictionListener, Shape.OnPointsChangedListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
static java.lang.String |
TOOL_IDENTIFIER |
_handleUndo, _insertPointIndex, _poly, _undoButton, _vertsVisible, container, MAIN_PROMPT, TAP_PROMPT, twoListenerPushesDeep
_button, _imageButton
_identifier, _mapListenerCount, _mapView
Constructor and Description |
---|
RouteEditTool(MapView mapView,
android.widget.Button undoButton,
android.widget.Button drawButton,
RouteMapReceiver routeMapReceiver) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Called only by the parent during final cleanup activities.
|
boolean |
inDrawMode() |
protected void |
insertPoint(EditablePolyline poly,
int index) |
void |
onConflict(java.util.SortedSet<MapItem> hitItems)
Fired when there is a conflict.
|
void |
onPointsChanged(Shape shp) |
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 |
showMainPrompt() |
void |
toggleDrawMode() |
void |
undo() |
multipleVerticesHit, onEditableChanged, onMapEvent, run
initButton, onButtonClicked, setActive
clearExtraListeners, endTool, findPoint, getActive, getIdentifier, onKey, popAllMapListeners, popMapListeners, pushMapListeners, requestBeginTool, requestEndTool, shouldEndOnBack
public static final java.lang.String TAG
public static final java.lang.String TOOL_IDENTIFIER
public RouteEditTool(MapView mapView, android.widget.Button undoButton, android.widget.Button drawButton, RouteMapReceiver routeMapReceiver)
public void dispose()
Tool
dispose
in class EditablePolylineEditTool
public boolean onToolBegin(android.os.Bundle extras)
Tool
onToolBegin
in class EditablePolylineEditTool
extras
- extra params that were passed by the GUIpublic void onToolEnd()
Tool
onToolEnd
in class EditablePolylineEditTool
public void onPointsChanged(Shape shp)
onPointsChanged
in interface Shape.OnPointsChangedListener
protected void insertPoint(EditablePolyline poly, int index)
insertPoint
in class EditablePolylineEditTool
protected void showMainPrompt()
showMainPrompt
in class EditablePolylineEditTool
public void undo()
undo
in interface Undoable
undo
in class EditablePolylineEditTool
public void onConflict(java.util.SortedSet<MapItem> hitItems)
MapTouchController.DeconflictionListener
onConflict
in interface MapTouchController.DeconflictionListener
hitItems
- the non-null set that is provided for possible manipulation by the implementaion.public void toggleDrawMode()
public boolean inDrawMode()