public class RectangleEditTool extends ButtonTool implements Undoable, MapItem.OnGroupChangedListener, Rectangle.OnMoveListener, MapTouchController.DeconflictionListener
Modifier and Type | Class and Description |
---|---|
class |
RectangleEditTool.ManualRectangleEditReceiver |
Modifier and Type | Field and Description |
---|---|
protected Rectangle |
_rectangle
FIELDS
|
protected android.widget.Button |
_undoButton |
static java.lang.String |
TOOL_IDENTIFIER |
_button, _imageButton
_identifier, _mapListenerCount, _mapView
Constructor and Description |
---|
RectangleEditTool(MapView mapView,
android.widget.Button button,
android.widget.Button undoButton)
CONSTRUCTORS
|
Modifier and Type | Method and Description |
---|---|
void |
onConflict(java.util.SortedSet<MapItem> hitItems)
Fired when there is a conflict.
|
void |
onItemAdded(MapItem item,
MapGroup newGroup) |
void |
onItemRemoved(MapItem item,
MapGroup oldGroup) |
void |
onMoved(Rectangle r,
GeoPointMetaData[] oldPoints,
GeoPointMetaData[] newPoints) |
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() |
dispose, initButton, onButtonClicked, setActive
clearExtraListeners, endTool, findPoint, getActive, getIdentifier, onKey, popAllMapListeners, popMapListeners, pushMapListeners, requestBeginTool, requestEndTool, shouldEndOnBack
protected Rectangle _rectangle
public static final java.lang.String TOOL_IDENTIFIER
protected final android.widget.Button _undoButton
public RectangleEditTool(MapView mapView, android.widget.Button button, android.widget.Button undoButton)
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 boolean run(EditAction action)
public void onItemAdded(MapItem item, MapGroup newGroup)
onItemAdded
in interface MapItem.OnGroupChangedListener
public void onItemRemoved(MapItem item, MapGroup oldGroup)
onItemRemoved
in interface MapItem.OnGroupChangedListener
public void onMoved(Rectangle r, GeoPointMetaData[] oldPoints, GeoPointMetaData[] newPoints)
onMoved
in interface Rectangle.OnMoveListener
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.