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, setActiveclearExtraListeners, endTool, findPoint, getActive, getIdentifier, onKey, popAllMapListeners, popMapListeners, pushMapListeners, requestBeginTool, requestEndTool, shouldEndOnBackprotected 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)
ToolonToolBegin in class ButtonToolextras - extra params that were passed by the GUIpublic void onToolEnd()
Toolpublic boolean run(EditAction action)
public void onItemAdded(MapItem item, MapGroup newGroup)
onItemAdded in interface MapItem.OnGroupChangedListenerpublic void onItemRemoved(MapItem item, MapGroup oldGroup)
onItemRemoved in interface MapItem.OnGroupChangedListenerpublic void onMoved(Rectangle r, GeoPointMetaData[] oldPoints, GeoPointMetaData[] newPoints)
onMoved in interface Rectangle.OnMoveListenerpublic void onConflict(java.util.SortedSet<MapItem> hitItems)
MapTouchController.DeconflictionListeneronConflict in interface MapTouchController.DeconflictionListenerhitItems - the non-null set that is provided for possible manipulation by the implementaion.