public class DynamicRangeAndBearingTool extends Tool implements MapEventDispatcher.MapEventDispatchListener, android.view.View.OnClickListener, android.view.View.OnLongClickListener
Modifier and Type | Field and Description |
---|---|
protected android.content.BroadcastReceiver |
_backListener |
protected android.content.Context |
_context |
protected MapEventDispatcher.OnMapEventListener |
_dragListener |
protected PointMapItem |
_pt1 |
protected PointMapItem |
_pt2 |
protected MapGroup |
_rabGroup |
protected int |
pops |
static java.lang.String |
TAG |
static java.lang.String |
TOOL_NAME |
_identifier, _mapListenerCount, _mapView
Modifier | Constructor and Description |
---|---|
protected |
DynamicRangeAndBearingTool(MapView mapView,
android.widget.ImageButton button) |
Modifier and Type | Method and Description |
---|---|
protected void |
addButton(android.widget.ImageButton button) |
void |
dispose()
Called only by the parent during final cleanup activities.
|
static DynamicRangeAndBearingTool |
getInstance(MapView mapView,
android.widget.ImageButton button) |
protected void |
makeRabWidget() |
void |
onClick(android.view.View v) |
boolean |
onLongClick(android.view.View view) |
void |
onMapEvent(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.
|
protected void |
prompt(int stringId) |
void |
setActive(boolean active)
Called to set whether a tool is actively being used.
|
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
protected PointMapItem _pt1
protected PointMapItem _pt2
protected final android.content.Context _context
protected final MapGroup _rabGroup
protected int pops
protected final MapEventDispatcher.OnMapEventListener _dragListener
protected final android.content.BroadcastReceiver _backListener
protected DynamicRangeAndBearingTool(MapView mapView, android.widget.ImageButton button)
public static DynamicRangeAndBearingTool getInstance(MapView mapView, android.widget.ImageButton button)
protected void addButton(android.widget.ImageButton button)
public void dispose()
Tool
public boolean onToolBegin(android.os.Bundle extras)
Tool
onToolBegin
in class Tool
extras
- extra params that were passed by the GUIpublic void onClick(android.view.View v)
onClick
in interface android.view.View.OnClickListener
public boolean onLongClick(android.view.View view)
onLongClick
in interface android.view.View.OnLongClickListener
public void setActive(boolean active)
Tool
public void onToolEnd()
Tool
protected void makeRabWidget()
public void onMapEvent(MapEvent event)
onMapEvent
in interface MapEventDispatcher.MapEventDispatchListener
protected void prompt(int stringId)