public abstract class SpecialPointButtonTool extends Tool
Modifier and Type | Class and Description |
---|---|
static class |
SpecialPointButtonTool.States |
Modifier and Type | Field and Description |
---|---|
protected android.view.View.OnClickListener |
_buttonClickListener |
protected android.view.View.OnLongClickListener |
_buttonLongClickListener |
protected Marker |
_marker |
_identifier, _mapListenerCount, _mapView
Modifier | Constructor and Description |
---|---|
protected |
SpecialPointButtonTool(MapView mapView,
android.widget.ImageButton button,
java.lang.String identifier) |
Modifier and Type | Method and Description |
---|---|
protected void |
addButton(android.widget.ImageButton button) |
protected void |
createMarker(java.lang.String assetURL,
java.lang.String uid,
java.lang.String callsign,
java.lang.String menu,
java.lang.String deleteAction)
creates a marker that is shared across all of the special points.
|
void |
dispose()
Called only by the parent during final cleanup activities.
|
SpecialPointButtonTool.States |
exectuteLongClick() |
SpecialPointButtonTool.States |
executeClick() |
Marker |
getMarker() |
protected java.lang.String |
getNavReference()
Get the
NavButtonModel reference for this tool |
protected int |
getResourceId(java.lang.String name) |
SpecialPointButtonTool.States |
getState() |
SpecialPointButtonTool.States |
off() |
boolean |
onToolBegin(android.os.Bundle bundle)
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.
|
protected void |
removeMarker() |
boolean |
setActionMenuData(ActionMenuData amd)
Deprecated.
No longer used - see
NavView |
protected void |
setCurrentState(SpecialPointButtonTool.States s) |
boolean |
shouldEndOnBack()
Returns whether this tool should end when the back button is pressed.
|
clearExtraListeners, endTool, findPoint, getActive, getIdentifier, onKey, popAllMapListeners, popMapListeners, pushMapListeners, requestBeginTool, requestEndTool, setActive
protected Marker _marker
protected android.view.View.OnLongClickListener _buttonLongClickListener
protected android.view.View.OnClickListener _buttonClickListener
protected SpecialPointButtonTool(MapView mapView, android.widget.ImageButton button, java.lang.String identifier)
public boolean onToolBegin(android.os.Bundle bundle)
Tool
onToolBegin
in class Tool
bundle
- extra params that were passed by the GUIpublic void onToolEnd()
Tool
public void dispose()
Tool
public Marker getMarker()
protected void addButton(android.widget.ImageButton button)
@Deprecated public boolean setActionMenuData(ActionMenuData amd)
NavView
amd
- ActionMenuData item to set.protected java.lang.String getNavReference()
NavButtonModel
reference for this toolpublic SpecialPointButtonTool.States getState()
public SpecialPointButtonTool.States exectuteLongClick()
public SpecialPointButtonTool.States off()
public SpecialPointButtonTool.States executeClick()
protected void createMarker(java.lang.String assetURL, java.lang.String uid, java.lang.String callsign, java.lang.String menu, java.lang.String deleteAction)
protected void removeMarker()
public boolean shouldEndOnBack()
Tool
shouldEndOnBack
in class Tool
protected int getResourceId(java.lang.String name)
protected void setCurrentState(SpecialPointButtonTool.States s)