public abstract class ButtonTool extends Tool
Modifier and Type | Field and Description |
---|---|
protected android.widget.Button |
_button |
protected android.widget.ImageButton |
_imageButton |
_identifier, _mapListenerCount, _mapView
Constructor and Description |
---|
ButtonTool(MapView mapView,
android.widget.Button button,
java.lang.String identifier) |
ButtonTool(MapView mapView,
android.widget.ImageButton button,
java.lang.String identifier) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Called only by the parent during final cleanup activities.
|
protected void |
initButton()
Performs button initialization, setting up onclick listeners etc.
|
void |
onButtonClicked() |
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 |
setActive(boolean active)
Called to set whether a tool is actively being used.
|
clearExtraListeners, endTool, findPoint, getActive, getIdentifier, onKey, onToolEnd, popAllMapListeners, popMapListeners, pushMapListeners, requestBeginTool, requestEndTool, shouldEndOnBack
protected android.widget.Button _button
protected android.widget.ImageButton _imageButton
public ButtonTool(MapView mapView, android.widget.Button button, java.lang.String identifier)
public ButtonTool(MapView mapView, android.widget.ImageButton button, java.lang.String identifier)
public boolean onToolBegin(android.os.Bundle extras)
Tool
onToolBegin
in class Tool
extras
- extra params that were passed by the GUIpublic void dispose()
Tool
public void onButtonClicked()
protected void initButton()
protected void setActive(boolean active)
Tool