public class VehicleRotationTool extends ButtonTool implements MapEventDispatcher.OnMapEventListener, MapItem.OnGroupChangedListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TAG |
static java.lang.String |
TOOL_NAME |
_button, _imageButton
_identifier, _mapListenerCount, _mapView
Constructor and Description |
---|
VehicleRotationTool(MapView mapView,
android.widget.ImageButton button) |
Modifier and Type | Method and Description |
---|---|
void |
onItemAdded(MapItem item,
MapGroup group) |
void |
onItemRemoved(MapItem item,
MapGroup group) |
void |
onMapItemMapEvent(MapItem item,
MapEvent event) |
boolean |
onToolBegin(android.os.Bundle extras)
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.
|
dispose, initButton, onButtonClicked, setActive
clearExtraListeners, endTool, findPoint, getActive, getIdentifier, onKey, popAllMapListeners, popMapListeners, pushMapListeners, requestBeginTool, requestEndTool, shouldEndOnBack
public static final java.lang.String TAG
public static final java.lang.String TOOL_NAME
public VehicleRotationTool(MapView mapView, android.widget.ImageButton button)
public boolean onToolBegin(android.os.Bundle extras)
Tool
onToolBegin
in class ButtonTool
extras
- extra params that were passed by the GUIpublic void onToolEnd()
Tool
public void onMapItemMapEvent(MapItem item, MapEvent event)
onMapItemMapEvent
in interface MapEventDispatcher.OnMapEventListener
public void onItemAdded(MapItem item, MapGroup group)
onItemAdded
in interface MapItem.OnGroupChangedListener
public void onItemRemoved(MapItem item, MapGroup group)
onItemRemoved
in interface MapItem.OnGroupChangedListener