public class BloodHoundTool extends ButtonTool implements android.view.View.OnLongClickListener, android.content.SharedPreferences.OnSharedPreferenceChangeListener
| Modifier and Type | Field and Description |
|---|---|
BloodHoundRouteWidget |
_routeWidget |
static java.lang.String |
BLOOD_HOUND |
static java.lang.String |
TOOL_IDENTIFIER |
_button, _imageButton_identifier, _mapListenerCount, _mapView| Constructor and Description |
|---|
BloodHoundTool(MapView mapView)
CONSTRUCTOR
|
| Modifier and Type | Method and Description |
|---|---|
void |
_updateLinkInfo() |
int |
currentColor() |
void |
dismissTimer() |
void |
dispose()
Called only by the parent during final cleanup activities.
|
PointMapItem |
getEndItem() |
android.content.BroadcastReceiver |
getHoundReceiver() |
BloodHoundToolLink |
getlink() |
java.lang.Boolean |
getRunning() |
PointMapItem |
getSpiItem() |
PointMapItem |
getStartItem() |
java.lang.String |
getUid() |
PointMapItem |
getUser() |
boolean |
isTablet() |
void |
onButtonClicked() |
boolean |
onLongClick(android.view.View view) |
void |
onSharedPreferenceChanged(android.content.SharedPreferences sp,
java.lang.String key) |
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.
|
static java.lang.String |
pad3(int value)
Pad a number by the specified number of places.
|
void |
setActive(boolean active)
Called to set whether a tool is actively being used.
|
boolean |
shouldEndOnBack()
Returns whether this tool should end when the back button is pressed.
|
boolean |
start()
Starts the bloodhound tool
|
void |
stop() |
initButtonclearExtraListeners, endTool, findPoint, getActive, getIdentifier, onKey, popAllMapListeners, popMapListeners, pushMapListeners, requestBeginTool, requestEndToolpublic static final java.lang.String BLOOD_HOUND
public static final java.lang.String TOOL_IDENTIFIER
public final BloodHoundRouteWidget _routeWidget
public BloodHoundTool(MapView mapView)
public BloodHoundToolLink getlink()
public java.lang.String getUid()
public PointMapItem getStartItem()
public PointMapItem getSpiItem()
public PointMapItem getEndItem()
public PointMapItem getUser()
public android.content.BroadcastReceiver getHoundReceiver()
public java.lang.Boolean getRunning()
public void onButtonClicked()
onButtonClicked in class ButtonToolpublic boolean onLongClick(android.view.View view)
onLongClick in interface android.view.View.OnLongClickListenerpublic boolean onToolBegin(android.os.Bundle extras)
ToolonToolBegin in class ButtonToolextras - extra params that were passed by the GUIpublic void setActive(boolean active)
ToolsetActive in class ButtonToolpublic static java.lang.String pad3(int value)
value - the number of placespublic boolean isTablet()
public boolean start()
public void stop()
public void dispose()
Tooldispose in class ButtonToolpublic boolean shouldEndOnBack()
ToolshouldEndOnBack in class Toolpublic void onToolEnd()
Toolpublic void onSharedPreferenceChanged(android.content.SharedPreferences sp,
java.lang.String key)
onSharedPreferenceChanged in interface android.content.SharedPreferences.OnSharedPreferenceChangeListenerpublic void _updateLinkInfo()
public int currentColor()
public void dismissTimer()