public class RangeRing extends PointMapItem implements AnchoredMapItem, DangerCloseCalculator.ClosestItemListener, android.content.SharedPreferences.OnSharedPreferenceChangeListener, MapItem.OnGroupChangedListener, PointMapItem.OnPointChangedListener, MapItem.OnVisibleChangedListener
PointMapItem.OnPointChangedListener
MapItem.OnAltitudeModeChangedListener, MapItem.OnClickableChangedListener, MapItem.OnGroupChangedListener, MapItem.OnHeightChangedListener, MapItem.OnMetadataChangedListener, MapItem.OnTypeChangedListener, MapItem.OnVisibleChangedListener, MapItem.OnZOrderChangedListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MENU |
POINT_DEFAULT
CLICKABLE_DEFAULT, EDITABLE_DEFAULT, EMPTY_TYPE, HIT_RATIO_DEFAULT, MOVABLE_DEFAULT, VISIBLE_DEFAULT, ZORDER_DEFAULT, ZORDER_HITTEST_COMPARATOR, ZORDER_RENDER_COMPARATOR
metadata
Constructor and Description |
---|
RangeRing(MapView mapView,
MapGroup mapGroup1,
PointMapItem target1,
java.lang.String weapon,
int innerRange,
int outerRange,
java.lang.String from) |
Modifier and Type | Method and Description |
---|---|
Circle |
get_prone() |
Circle |
get_standing() |
PointMapItem |
getAnchorItem()
Get the anchor marker for this item
|
java.lang.String |
getCategory() |
java.lang.String |
getFromLine() |
int |
getInnerRange() |
int |
getOuterRange() |
GeoPoint |
getPoint()
Get the point value.
|
double |
getRange()
Provides the range within which to monitor
Return less than or equal to 0 to monitor only the single closest
Return greater than 0 to monitor all items within a range
|
boolean |
getVisible() |
java.lang.String |
getWeaponName() |
boolean |
hasNoLine() |
void |
onClosestItem(DangerCloseCalculator.DangerCloseAlert ic)
Invoked periodically to update the "closest" item
|
void |
onItemAdded(MapItem item,
MapGroup newParent) |
void |
onItemRemoved(MapItem item,
MapGroup oldParent) |
void |
onPointChanged(PointMapItem item) |
void |
onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences,
java.lang.String key) |
protected void |
onVisibleChanged()
Invokes when the visible property changes
|
void |
onVisibleChanged(MapItem item) |
void |
remove() |
void |
setCategory(java.lang.String category) |
void |
setStandingProneVisible(boolean visible) |
java.lang.String |
toString()
Default string conversion which contains the UID, type, and title
|
addOnPointChangedListener, dispose, getCrumbTrail, getGeoPointMetaData, getPersistentCircleCrumbTrail, getVolumeHeight, getVolumeRadius, onPointChanged, removeOnPointChangedListener, setCrumbTrail, setPersistentCircleCrumbTrail, setPoint, setPoint, setVolume
addOnAltitudeModeChangedListener, addOnClickableChangedListener, addOnGroupChangedListener, addOnHeightChangedListener, addOnMetadataChangedListener, addOnMetadataChangedListener, addOnTypeChangedListener, addOnVisibleChangedListener, addOnZOrderChangedListener, computeDistance, copyMetaData, createSerialId, getAltitudeMode, getClickable, getClickPoint, getEditable, getGroup, getHashtags, getHeight, getHitRadius, getIconColor, getIconDrawable, getMetaBoolean, getMetaString, getMovable, getRadialMenuPath, getRemarks, getRemarksKey, getSerialId, getTag, getTitle, getType, getUID, getUniqueMapItemName, getURI, getVisible, getZOrder, isTouchable, notifyMetadataChanged, onAdded, onAltitudeModeChanged, onClickableChanged, onGroupChanged, onHeightChanged, onMetadataChanged, onRemoved, 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
get, getMetaData, getMetaDouble, getMetaIntArray, getMetaInteger, getMetaLong, getMetaMap, getMetaParcelable, getMetaSerializable, getMetaStringArrayList, hasMetaValue, setMetaDataImpl, toggleMetaData
public static final java.lang.String MENU
public RangeRing(MapView mapView, MapGroup mapGroup1, PointMapItem target1, java.lang.String weapon, int innerRange, int outerRange, java.lang.String from)
public void onPointChanged(PointMapItem item)
onPointChanged
in interface PointMapItem.OnPointChangedListener
public void onVisibleChanged(MapItem item)
onVisibleChanged
in interface MapItem.OnVisibleChangedListener
public void onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences, java.lang.String key)
onSharedPreferenceChanged
in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener
public void onItemAdded(MapItem item, MapGroup newParent)
onItemAdded
in interface MapItem.OnGroupChangedListener
public void onItemRemoved(MapItem item, MapGroup oldParent)
onItemRemoved
in interface MapItem.OnGroupChangedListener
public void setCategory(java.lang.String category)
public java.lang.String getCategory()
public double getRange()
DangerCloseCalculator.ClosestItemListener
getRange
in interface DangerCloseCalculator.ClosestItemListener
public java.lang.String getFromLine()
public boolean hasNoLine()
public void onClosestItem(DangerCloseCalculator.DangerCloseAlert ic)
DangerCloseCalculator.ClosestItemListener
onClosestItem
in interface DangerCloseCalculator.ClosestItemListener
ic
- the alert to be triggered when a closest item is detectedpublic java.lang.String toString()
MapItem
protected void onVisibleChanged()
MapItem
onVisibleChanged
in class MapItem
public boolean getVisible()
getVisible
in class MapItem
public void setStandingProneVisible(boolean visible)
public java.lang.String getWeaponName()
public void remove()
public Circle get_standing()
public Circle get_prone()
public int getInnerRange()
public int getOuterRange()
public PointMapItem getAnchorItem()
AnchoredMapItem
getAnchorItem
in interface AnchoredMapItem
public GeoPoint getPoint()
PointMapItem
getPoint
in class PointMapItem