public class CoordOverlayMapReceiver extends android.content.BroadcastReceiver implements PointMapItem.OnPointChangedListener, MapGroup.OnItemListChangedListener, android.content.SharedPreferences.OnSharedPreferenceChangeListener, Marker.OnTrackChangedListener, MapWidget.OnClickListener
Modifier and Type | Class and Description |
---|---|
protected static class |
CoordOverlayMapReceiver.ElevationDisplayInfo |
Modifier and Type | Field and Description |
---|---|
protected Marker |
_activeMarker |
protected java.lang.String |
_activeMarkerUID |
protected boolean |
_marker |
protected TextWidget |
_positionText |
protected android.content.SharedPreferences |
_prefs |
protected Span |
altUnits |
protected Area |
areaRef |
protected Angle |
bearingUnits |
protected static java.lang.String |
COORD_COPY |
protected static java.lang.String |
COORD_ENLARGE |
protected android.content.BroadcastReceiver |
coordReceiver |
protected NorthReference |
northRef |
protected int |
rangeSystem |
protected PointMapItem |
self |
static java.lang.String |
SHOW_DETAILS |
static java.lang.String |
TAG |
Constructor and Description |
---|
CoordOverlayMapReceiver(MapView mapView) |
Modifier and Type | Method and Description |
---|---|
protected void |
_adjustOverlay(boolean displayRB) |
protected void |
_updatePoint(GeoPointMetaData point,
java.lang.String label,
java.lang.String sublabel,
double distance,
double bearing,
boolean displayRB,
double speed,
double heading,
boolean estimate,
double height,
double area,
boolean teamMate,
CoordOverlayMapReceiver.ElevationDisplayInfo el)
This is the uber formatting function from ATAK 2.0+
|
protected java.lang.String |
constructCoordText(java.lang.String label,
java.lang.String sublabel,
GeoPointMetaData pointWithMetadata,
double distance,
double bearing,
boolean displayRB,
double speed,
double heading,
boolean estimate,
double height,
double area,
boolean teamMate,
CoordOverlayMapReceiver.ElevationDisplayInfo el,
int[] lineColors) |
protected void |
initUnits() |
void |
onItemAdded(MapItem item,
MapGroup group) |
void |
onItemRemoved(MapItem item,
MapGroup group) |
void |
onMapWidgetClick(MapWidget widget,
android.view.MotionEvent event) |
void |
onPointChanged(PointMapItem item) |
void |
onReceive(android.content.Context context,
android.content.Intent intent) |
void |
onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences,
java.lang.String key) |
void |
onTrackChanged(Marker marker) |
abortBroadcast, clearAbortBroadcast, getAbortBroadcast, getDebugUnregister, getResultCode, getResultData, getResultExtras, goAsync, isInitialStickyBroadcast, isOrderedBroadcast, peekService, setDebugUnregister, setOrderedHint, setResult, setResultCode, setResultData, setResultExtras
public static final java.lang.String TAG
public static final java.lang.String SHOW_DETAILS
protected static final java.lang.String COORD_COPY
protected static final java.lang.String COORD_ENLARGE
protected PointMapItem self
protected TextWidget _positionText
protected boolean _marker
protected java.lang.String _activeMarkerUID
protected Marker _activeMarker
protected android.content.SharedPreferences _prefs
protected Angle bearingUnits
protected int rangeSystem
protected NorthReference northRef
protected Area areaRef
protected Span altUnits
protected final android.content.BroadcastReceiver coordReceiver
public CoordOverlayMapReceiver(MapView mapView)
protected void initUnits()
public void onPointChanged(PointMapItem item)
onPointChanged
in interface PointMapItem.OnPointChangedListener
public void onItemAdded(MapItem item, MapGroup group)
onItemAdded
in interface MapGroup.OnItemListChangedListener
public void onItemRemoved(MapItem item, MapGroup group)
onItemRemoved
in interface MapGroup.OnItemListChangedListener
public void onMapWidgetClick(MapWidget widget, android.view.MotionEvent event)
onMapWidgetClick
in interface MapWidget.OnClickListener
public void onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences, java.lang.String key)
onSharedPreferenceChanged
in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener
public void onReceive(android.content.Context context, android.content.Intent intent)
onReceive
in class android.content.BroadcastReceiver
protected void _adjustOverlay(boolean displayRB)
protected java.lang.String constructCoordText(java.lang.String label, java.lang.String sublabel, GeoPointMetaData pointWithMetadata, double distance, double bearing, boolean displayRB, double speed, double heading, boolean estimate, double height, double area, boolean teamMate, CoordOverlayMapReceiver.ElevationDisplayInfo el, int[] lineColors)
public void onTrackChanged(Marker marker)
onTrackChanged
in interface Marker.OnTrackChangedListener
protected void _updatePoint(GeoPointMetaData point, java.lang.String label, java.lang.String sublabel, double distance, double bearing, boolean displayRB, double speed, double heading, boolean estimate, double height, double area, boolean teamMate, CoordOverlayMapReceiver.ElevationDisplayInfo el)
point
- the point to uselabel
- the labelsublabel
- a sublabel if it existsdistance
- the distance to the red Xbearing
- the bearing to the red XdisplayRB
- true if the distance and bearing are to be shownspeed
- the speedheading
- headingestimate
- if the speed and heading are estimatedheight
- the height of the itemarea
- the areateamMate
- if the item is a team mateel
- the elevation model for the case where a surface model is shown.