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() |
initButton
clearExtraListeners, endTool, findPoint, getActive, getIdentifier, onKey, popAllMapListeners, popMapListeners, pushMapListeners, requestBeginTool, requestEndTool
public 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 ButtonTool
public boolean onLongClick(android.view.View view)
onLongClick
in interface android.view.View.OnLongClickListener
public boolean onToolBegin(android.os.Bundle extras)
Tool
onToolBegin
in class ButtonTool
extras
- extra params that were passed by the GUIpublic void setActive(boolean active)
Tool
setActive
in class ButtonTool
public static java.lang.String pad3(int value)
value
- the number of placespublic boolean isTablet()
public boolean start()
public void stop()
public void dispose()
Tool
dispose
in class ButtonTool
public boolean shouldEndOnBack()
Tool
shouldEndOnBack
in class Tool
public void onToolEnd()
Tool
public void onSharedPreferenceChanged(android.content.SharedPreferences sp, java.lang.String key)
onSharedPreferenceChanged
in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener
public void _updateLinkInfo()
public int currentColor()
public void dismissTimer()