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, shouldEndOnBack
public static final java.lang.String TOOL_IDENTIFIER
public MovePointTool(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 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()
Tool
public void onVisibleChanged(MapItem item)
onVisibleChanged
in interface MapItem.OnVisibleChangedListener