public class RegionShapeTool extends Tool implements Undoable, MapEventDispatcher.MapEventDispatchListener, android.view.View.OnClickListener, android.content.DialogInterface.OnClickListener
Modifier and Type | Class and Description |
---|---|
static class |
RegionShapeTool.Mode |
Modifier and Type | Field and Description |
---|---|
protected DrawingRectangle.Builder |
_builder |
protected android.content.Intent |
_callback |
protected android.content.Context |
_context |
protected TileButtonDialog |
_dialog |
protected MapGroup |
_drawingGroup |
protected DrawingShape |
_drawShape |
protected double |
_expandDistance |
protected android.graphics.PointF |
_lastPt |
protected RegionShapeTool.Mode |
_mode |
protected Shape |
_shape |
protected android.widget.Button |
_undoButton |
protected java.util.Stack<EditAction> |
_undoStack |
protected static java.lang.String |
TAG |
static java.lang.String |
TOOL_ID |
_identifier, _mapListenerCount
Constructor and Description |
---|
RegionShapeTool(MapView mapView) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Called only by the parent during final cleanup activities.
|
void |
onClick(android.content.DialogInterface d,
int w) |
void |
onClick(android.view.View v) |
void |
onMapEvent(MapEvent event) |
protected boolean |
onToolBegin(android.os.Bundle extras)
Called when this tool has been asked to start (and after the last tool has cleaned up)
|
protected 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() |
clearExtraListeners, endTool, findPoint, getActive, getIdentifier, onKey, popAllMapListeners, popMapListeners, pushMapListeners, requestBeginTool, requestEndTool, setActive, shouldEndOnBack
protected static final java.lang.String TAG
public static final java.lang.String TOOL_ID
protected final android.content.Context _context
protected final android.widget.Button _undoButton
protected final java.util.Stack<EditAction> _undoStack
protected MapGroup _drawingGroup
protected RegionShapeTool.Mode _mode
protected android.content.Intent _callback
protected Shape _shape
protected DrawingShape _drawShape
protected android.graphics.PointF _lastPt
protected double _expandDistance
protected DrawingRectangle.Builder _builder
protected TileButtonDialog _dialog
public RegionShapeTool(MapView mapView)
public void dispose()
Tool
protected boolean onToolBegin(android.os.Bundle extras)
Tool
onToolBegin
in class Tool
extras
- extra params that were passed by the GUIprotected void onToolEnd()
Tool
public void onClick(android.view.View v)
onClick
in interface android.view.View.OnClickListener
public void onClick(android.content.DialogInterface d, int w)
onClick
in interface android.content.DialogInterface.OnClickListener
public boolean run(EditAction action)
public void onMapEvent(MapEvent event)
onMapEvent
in interface MapEventDispatcher.MapEventDispatchListener