public class SpiButtonTool extends SpecialPointButtonTool implements MapItem.OnVisibleChangedListener
SpecialPointButtonTool.States
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IDENTIFIER |
static java.lang.String |
SPI_OFF |
static java.lang.String |
TAG |
_buttonClickListener, _buttonLongClickListener, _marker
_identifier, _mapListenerCount, _mapView
Constructor and Description |
---|
SpiButtonTool(MapView mapView,
android.widget.ImageButton button,
int index)
This tool is similar to the SelectPointButtonTool, but only one instance of each button
should exist, making it easy to define.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Called only by the parent during final cleanup activities.
|
boolean |
onToolBegin(android.os.Bundle bundle)
Called when this tool has been asked to start (and after the last tool has cleaned up)
|
void |
onVisibleChanged(MapItem item) |
addButton, createMarker, exectuteLongClick, executeClick, getMarker, getNavReference, getResourceId, getState, off, onToolEnd, removeMarker, setActionMenuData, setCurrentState, shouldEndOnBack
clearExtraListeners, endTool, findPoint, getActive, getIdentifier, onKey, popAllMapListeners, popMapListeners, pushMapListeners, requestBeginTool, requestEndTool, setActive
public static final java.lang.String TAG
public static final java.lang.String IDENTIFIER
public static final java.lang.String SPI_OFF
public SpiButtonTool(MapView mapView, android.widget.ImageButton button, int index)
mapView
- MapView used to construct this buttonbutton
- Button to associated with this toolindex
- public void dispose()
Tool
dispose
in class SpecialPointButtonTool
public boolean onToolBegin(android.os.Bundle bundle)
Tool
onToolBegin
in class SpecialPointButtonTool
bundle
- extra params that were passed by the GUIpublic void onVisibleChanged(MapItem item)
onVisibleChanged
in interface MapItem.OnVisibleChangedListener