public class MovePointTool extends Tool implements MapItem.OnVisibleChangedListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TOOL_IDENTIFIER |
_identifier, _mapListenerCount, _mapView| Constructor and Description |
|---|
MovePointTool(MapView mapView) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addPromptType(java.lang.String type)
Add a type that should show the user a confirmation prompt before
allowing the point to be moved
|
void |
dispose()
Called only by the parent during final cleanup activities.
|
static void |
freezeMoveOnTypeWhenToolActive(java.lang.String type,
java.lang.String toolID)
Add a CoT type that should not be moved while a given tool is active
|
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.
|
void |
onVisibleChanged(MapItem item) |
clearExtraListeners, endTool, findPoint, getActive, getIdentifier, onKey, popAllMapListeners, popMapListeners, pushMapListeners, requestBeginTool, requestEndTool, setActive, shouldEndOnBackpublic static final java.lang.String TOOL_IDENTIFIER
public MovePointTool(MapView mapView)
public void dispose()
Toolprotected boolean onToolBegin(android.os.Bundle extras)
ToolonToolBegin in class Toolextras - extra params that were passed by the GUIpublic static void addPromptType(java.lang.String type)
type - - the type that should be prompted before movingpublic static void freezeMoveOnTypeWhenToolActive(java.lang.String type,
java.lang.String toolID)
type - - the CoT type to prevent being movedtoolID - - the tool ID that is active when preventing the movementprotected void onToolEnd()
Toolpublic void onVisibleChanged(MapItem item)
onVisibleChanged in interface MapItem.OnVisibleChangedListener