public class CrumbTrail extends MapItem implements FOVFilter.Filterable, android.content.SharedPreferences.OnSharedPreferenceChangeListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
CrumbTrail.CrumbLogListener |
static interface |
CrumbTrail.OnCrumbTrailUpdateListener |
MapItem.OnAltitudeModeChangedListener, MapItem.OnClickableChangedListener, MapItem.OnGroupChangedListener, MapItem.OnHeightChangedListener, MapItem.OnMetadataChangedListener, MapItem.OnTypeChangedListener, MapItem.OnVisibleChangedListener, MapItem.OnZOrderChangedListener| Modifier and Type | Field and Description |
|---|---|
boolean |
drawLineToSurface |
Crumb |
first |
Crumb |
last |
int |
size |
CLICKABLE_DEFAULT, EDITABLE_DEFAULT, EMPTY_TYPE, HIT_RATIO_DEFAULT, MOVABLE_DEFAULT, VISIBLE_DEFAULT, ZORDER_DEFAULT, ZORDER_HITTEST_COMPARATOR, ZORDER_RENDER_COMPARATORmetadata| Constructor and Description |
|---|
CrumbTrail(long serialId,
MetaDataHolder metadata,
MapView mapView,
android.content.SharedPreferences prefs,
java.lang.String uid)
Deprecated.
|
CrumbTrail(MapView mapView,
PointMapItem target,
android.content.SharedPreferences prefs,
java.lang.String uid) |
CrumbTrail(MapView mapView,
PointMapItem target,
android.content.SharedPreferences prefs,
java.lang.String uid,
boolean circles,
boolean unlimited)
Creates a new crumb trail.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(FOVFilter.MapState fov) |
void |
addCrumbLogListener(CrumbTrail.CrumbLogListener l) |
void |
addOnCrumbTrailUpdateListener(CrumbTrail.OnCrumbTrailUpdateListener l) |
void |
clearAllCrumbs() |
void |
crumb(CrumbDatabase cdb)
add another breadcrumb assuming it's far enough away from the last one,
and set the color based on the CoT type
|
boolean |
equals(java.lang.Object o) |
PointMapItem |
getTarget()
Return the current point map item that this crumb trail represents.
|
boolean |
getTracking()
Whether this crumb trail should be tracked (new crumbs added)
|
double |
getZOrder()
Get the item zOrder.
|
int |
hashCode() |
void |
onAdded(MapGroup newParent) |
void |
onRemoved(MapGroup oldParent) |
void |
onSharedPreferenceChanged(android.content.SharedPreferences prefs,
java.lang.String key) |
protected void |
onVisibleChanged()
Invokes when the visible property changes
|
void |
persist()
Persist this crumb trail to the track DB
|
static void |
persistTrails(java.util.List<CrumbTrail> trails)
Convenience method for persisting a list of trails
|
void |
removeCrumbLogListener(CrumbTrail.CrumbLogListener l) |
void |
removeOnCrumbTrailUpdateListener(CrumbTrail.OnCrumbTrailUpdateListener l) |
void |
setColor(int color)
Sets the color for the crumb trail.
|
void |
setTarget(PointMapItem target)
Sets the point map item for an existing crumb trail
|
void |
setTracking(boolean tracking)
Set the tracking state of this trail
Tracking controls whether BreadcrumbReceiver adds new crumbs
|
static boolean |
toggleCrumbTrail(CrumbTrail trail) |
addOnAltitudeModeChangedListener, addOnClickableChangedListener, addOnGroupChangedListener, addOnHeightChangedListener, addOnMetadataChangedListener, addOnMetadataChangedListener, addOnTypeChangedListener, addOnVisibleChangedListener, addOnZOrderChangedListener, computeDistance, copyMetaData, createSerialId, dispose, getAltitudeMode, getClickable, getClickPoint, getEditable, getGroup, getHashtags, getHeight, getHitRadius, getIconColor, getIconDrawable, getMetaBoolean, getMetaString, getMovable, getRadialMenuPath, getRemarks, getRemarksKey, getSerialId, getTag, getTitle, getType, getUID, getUniqueMapItemName, getURI, getVisible, getVisible, isTouchable, notifyMetadataChanged, onAltitudeModeChanged, onClickableChanged, onGroupChanged, onHeightChanged, onMetadataChanged, onTypeChanged, onVisibilityConditions, onZOrderChanged, persist, refresh, removeFromGroup, removeMetaData, removeOnAltitudeModeChangedListener, removeOnClickableChangedListener, removeOnGroupChangedListener, removeOnHeightChangedListener, removeOnMetadataChangedListener, removeOnMetadataChangedListener, removeOnTypeChangedListener, removeOnVisibleChangedListener, removeOnZOrderChangedListener, setAltitudeMode, setClickable, setClickPoint, setEditable, setHashtags, setHeight, setMetaBoolean, setMetaData, setMetaDouble, setMetaIntArray, setMetaInteger, setMetaLong, setMetaMap, setMetaParcelable, setMetaSerializable, setMetaString, setMetaStringArrayList, setMovable, setRadialMenu, setRemarks, setTag, setTitle, setTouchable, setType, setVisible, setVisible, setZOrder, testOrthoHit, toStringget, getMetaData, getMetaDouble, getMetaIntArray, getMetaInteger, getMetaLong, getMetaMap, getMetaParcelable, getMetaSerializable, getMetaStringArrayList, hasMetaValue, setMetaDataImpl, toggleMetaDatapublic Crumb first
public Crumb last
public int size
public boolean drawLineToSurface
@Deprecated
public CrumbTrail(long serialId,
MetaDataHolder metadata,
MapView mapView,
android.content.SharedPreferences prefs,
java.lang.String uid)
public CrumbTrail(MapView mapView, PointMapItem target, android.content.SharedPreferences prefs, java.lang.String uid)
public CrumbTrail(MapView mapView, PointMapItem target, android.content.SharedPreferences prefs, java.lang.String uid, boolean circles, boolean unlimited)
mapView - the map view for the crumb trailtarget - the target to produce the crumb trail forprefs - the preferences to queryuid - the uid for the trailcircles - render the trail as circles instead of arrowsunlimited - if the trail should ignore the system default maxpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean accept(FOVFilter.MapState fov)
accept in interface FOVFilter.Filterablepublic PointMapItem getTarget()
public void setTarget(PointMapItem target)
target - the point map item that will be used for the next crumbs in the crumb trail.public void setColor(int color)
color - the color as a ARGB value.public void onSharedPreferenceChanged(android.content.SharedPreferences prefs,
java.lang.String key)
onSharedPreferenceChanged in interface android.content.SharedPreferences.OnSharedPreferenceChangeListenerpublic void crumb(CrumbDatabase cdb)
public void addOnCrumbTrailUpdateListener(CrumbTrail.OnCrumbTrailUpdateListener l)
public void removeOnCrumbTrailUpdateListener(CrumbTrail.OnCrumbTrailUpdateListener l)
public void addCrumbLogListener(CrumbTrail.CrumbLogListener l)
public void removeCrumbLogListener(CrumbTrail.CrumbLogListener l)
public void clearAllCrumbs()
public double getZOrder()
MapItemprotected void onVisibleChanged()
MapItemonVisibleChanged in class MapItempublic void setTracking(boolean tracking)
tracking - True to enable trackingpublic boolean getTracking()
public void persist()
public static void persistTrails(java.util.List<CrumbTrail> trails)
trails - List of crumb trailspublic static boolean toggleCrumbTrail(CrumbTrail trail)