public abstract class PointMapItem extends MapItem
Modifier and Type | Class and Description |
---|---|
static interface |
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 GeoPoint |
POINT_DEFAULT |
CLICKABLE_DEFAULT, EDITABLE_DEFAULT, EMPTY_TYPE, HIT_RATIO_DEFAULT, MOVABLE_DEFAULT, VISIBLE_DEFAULT, ZORDER_DEFAULT, ZORDER_HITTEST_COMPARATOR, ZORDER_RENDER_COMPARATOR
metadata
Modifier | Constructor and Description |
---|---|
|
PointMapItem(GeoPointMetaData point,
java.lang.String uid)
Create a PointMapItem given a GeoPoint and the unique identifier
|
|
PointMapItem(GeoPoint point,
java.lang.String uid)
Create a PointMapItem given a GeoPoint and the unique identifier
|
protected |
PointMapItem(long serialId,
GeoPoint point,
java.lang.String uid) |
protected |
PointMapItem(long serialId,
MetaDataHolder metadata,
GeoPoint point,
java.lang.String uid) |
protected |
PointMapItem(long serialId,
MetaDataHolder metadata,
java.lang.String uid) |
Modifier and Type | Method and Description |
---|---|
void |
addOnPointChangedListener(PointMapItem.OnPointChangedListener listener)
Add a point property listener.
|
void |
dispose()
Clean up all of the resources associated with this MapItem, for destruction.
|
CrumbTrail |
getCrumbTrail() |
GeoPointMetaData |
getGeoPointMetaData()
Convenience method for retrieving the metadata enhanced GeoPoint for
a specific PointMapItem.
|
PersistentCircleCrumbTrail |
getPersistentCircleCrumbTrail()
Deprecated.
|
GeoPoint |
getPoint()
Get the point value.
|
double |
getVolumeHeight() |
double |
getVolumeRadius()
The radius in meters
|
protected void |
onPointChanged()
Invoked when the point property changes
|
void |
removeOnPointChangedListener(PointMapItem.OnPointChangedListener listener)
Remove a point property listener.
|
void |
setCrumbTrail(CrumbTrail trail) |
void |
setPersistentCircleCrumbTrail(PersistentCircleCrumbTrail persistentCircleCrumbTrail)
Deprecated.
|
void |
setPoint(GeoPoint point)
Set the point property value, and notify all relevant listeners that the PointMapItem has
changed.
|
void |
setPoint(GeoPointMetaData point)
Convenience function for setting a point with the associated metadata from the
GeoPointMetaData object.
|
void |
setVolume(double radius,
double height)
Sets both the radius and the height as one call.
|
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, getVisible, getZOrder, isTouchable, notifyMetadataChanged, onAdded, onAltitudeModeChanged, onClickableChanged, onGroupChanged, onHeightChanged, onMetadataChanged, onRemoved, onTypeChanged, onVisibilityConditions, onVisibleChanged, 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, toString
get, getMetaData, getMetaDouble, getMetaIntArray, getMetaInteger, getMetaLong, getMetaMap, getMetaParcelable, getMetaSerializable, getMetaStringArrayList, hasMetaValue, setMetaDataImpl, toggleMetaData
public PointMapItem(GeoPoint point, java.lang.String uid)
point
- the GeoPoint valuejava.lang.IllegalArgumentException
- if point
is nullpublic PointMapItem(GeoPointMetaData point, java.lang.String uid)
point
- the GeoPointMetaData valuejava.lang.IllegalArgumentException
- if point
is nullprotected PointMapItem(long serialId, MetaDataHolder metadata, java.lang.String uid)
protected PointMapItem(long serialId, GeoPoint point, java.lang.String uid)
protected PointMapItem(long serialId, MetaDataHolder metadata, GeoPoint point, java.lang.String uid)
public void addOnPointChangedListener(PointMapItem.OnPointChangedListener listener)
listener
- the listenerpublic void removeOnPointChangedListener(PointMapItem.OnPointChangedListener listener)
listener
- the listenerpublic GeoPoint getPoint()
public double getVolumeHeight()
public double getVolumeRadius()
public void setPoint(GeoPoint point)
point
- the GeoPointjava.lang.IllegalArgumentException
- if point
is nullpublic void setPoint(GeoPointMetaData point)
point
- public GeoPointMetaData getGeoPointMetaData()
public void setVolume(double radius, double height)
radius
- the radius in metersheight
- the height in metersprotected void onPointChanged()
public CrumbTrail getCrumbTrail()
public void setCrumbTrail(CrumbTrail trail)
@Deprecated public PersistentCircleCrumbTrail getPersistentCircleCrumbTrail()
@Deprecated public void setPersistentCircleCrumbTrail(PersistentCircleCrumbTrail persistentCircleCrumbTrail)