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, shouldEndOnBackprotected 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()
Toolprotected boolean onToolBegin(android.os.Bundle extras)
ToolonToolBegin in class Toolextras - extra params that were passed by the GUIprotected void onToolEnd()
Toolpublic void onClick(android.view.View v)
onClick in interface android.view.View.OnClickListenerpublic void onClick(android.content.DialogInterface d,
int w)
onClick in interface android.content.DialogInterface.OnClickListenerpublic boolean run(EditAction action)
public void onMapEvent(MapEvent event)
onMapEvent in interface MapEventDispatcher.MapEventDispatchListener