public class TelestrationTool extends Tool
Modifier and Type | Field and Description |
---|---|
protected MapGroup |
_mapGroup |
static java.lang.String |
TOOL_IDENTIFIER |
protected java.util.Stack<DrawingShape> |
undoStack |
_identifier, _mapListenerCount
Constructor and Description |
---|
TelestrationTool(MapView mapView,
MapGroup drawingGroup,
android.widget.ImageButton teleStrationButton,
DrawingToolsToolbar drawingToolsToolbar,
android.widget.ImageButton toggleButton,
android.widget.Button undoButton,
android.widget.Button doneButton,
android.widget.Button deleteTelestrationButton,
android.widget.ImageButton telestrationColorButton,
android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearExtraListeners()
Clears all listeners from the map except for those involved with fundamental map operations,
ie pan and pinch.
|
void |
dispose()
Called only by the parent during final cleanup activities.
|
protected void |
initButton()
Performs button initialization, setting up onclick listeners etc.
|
boolean |
onKey(android.view.View v,
int keyCode,
android.view.KeyEvent 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.
|
protected void |
setActive(boolean active)
Called to set whether a tool is actively being used.
|
boolean |
shouldEndOnBack()
Returns whether this tool should end when the back button is pressed.
|
void |
undo() |
endTool, findPoint, getActive, getIdentifier, popAllMapListeners, popMapListeners, pushMapListeners, requestBeginTool, requestEndTool
protected final java.util.Stack<DrawingShape> undoStack
public static final java.lang.String TOOL_IDENTIFIER
protected final MapGroup _mapGroup
public TelestrationTool(MapView mapView, MapGroup drawingGroup, android.widget.ImageButton teleStrationButton, DrawingToolsToolbar drawingToolsToolbar, android.widget.ImageButton toggleButton, android.widget.Button undoButton, android.widget.Button doneButton, android.widget.Button deleteTelestrationButton, android.widget.ImageButton telestrationColorButton, android.content.Context context)
public boolean onKey(android.view.View v, int keyCode, android.view.KeyEvent event)
public void dispose()
Tool
protected boolean onToolBegin(android.os.Bundle extras)
Tool
onToolBegin
in class Tool
extras
- extra params that were passed by the GUIprotected void onToolEnd()
Tool
public boolean shouldEndOnBack()
Tool
shouldEndOnBack
in class Tool
public void undo()
protected void setActive(boolean active)
Tool
protected void clearExtraListeners()
Tool
clearExtraListeners
in class Tool
protected void initButton()