public class OverlayItem
extends java.lang.Object
ItemizedOverlay的基本组件,存储单个的overlay数据。
限定符和类型 | 字段和说明 |
---|---|
protected Drawable |
mMarker
该item的标记点。
|
protected Point2D |
mPoint
该item的位置。
|
protected java.lang.String |
mSnippet
该item的文字片段。
|
protected java.lang.String |
mTitle
该item的标题文本。
|
构造器和说明 |
---|
OverlayItem(Point2D point, java.lang.String title, java.lang.String snippet)
构造函数。
|
限定符和类型 | 方法和说明 |
---|---|
int |
getAlignment()
获取绘图对象的大小。
|
Drawable |
getMarker(int stateBitSet)
返回标记点,该标记点在地图上绘制该item时使用。
|
Point2D |
getPoint()
返回该item的经纬度坐标,以Point2D形式。
|
java.lang.String |
getSnippet()
返回该item的文字描述片段。
|
java.lang.String |
getTitle()
返回该item的标题文本。
|
java.lang.String |
routableAddress()
路由位址。
|
void |
setAlignment(int bitset)
设置绘图对象的大小。
|
void |
setMarker(Drawable marker)
设置overlay标记。
|
void |
setPoint(Point2D point)
设置该item的经纬度坐标,以Point2D形式。
|
void |
setSnippet(java.lang.String snippet)
设置该item的文字片段。
|
static void |
setState(Drawable marker, int stateBitset)
设置状态。
|
void |
setTitle(java.lang.String title)
设置该item的标题文本。
|
protected Drawable mMarker
该item的标记点。
protected Point2D mPoint
该item的位置。
protected java.lang.String mTitle
该item的标题文本。
protected java.lang.String mSnippet
该item的文字片段。
public OverlayItem(Point2D point, java.lang.String title, java.lang.String snippet)
构造函数。
point
- 坐标点。title
- 名称。snippet
- 描述片段。public Drawable getMarker(int stateBitSet)
返回标记点,该标记点在地图上绘制该item时使用。
stateBitSet
- 状态标识。public Point2D getPoint()
返回该item的经纬度坐标,以Point2D形式。
public void setPoint(Point2D point)
设置该item的经纬度坐标,以Point2D形式。
public java.lang.String getSnippet()
返回该item的文字描述片段。
public void setSnippet(java.lang.String snippet)
设置该item的文字片段。
snippet
- 描述文字片段。public java.lang.String getTitle()
返回该item的标题文本。
public void setTitle(java.lang.String title)
设置该item的标题文本。
title
- item的标题文本。public void setMarker(Drawable marker)
设置overlay标记。
marker
- overlay标记。public static void setState(Drawable marker, int stateBitset)
设置状态。
marker
- 绘图标识。stateBitset
- 状态标识。public void setAlignment(int bitset)
设置绘图对象的大小。
bitset
- 绘图对象的大小。public int getAlignment()
获取绘图对象的大小。
public java.lang.String routableAddress()
路由位址。