public final class PolygonOptions extends BaseOptions implements android.os.Parcelable, java.lang.Cloneable
| 限定符和类型 | 字段和说明 |
|---|---|
static PolygonOptionsCreator |
CREATOR |
| 构造器和说明 |
|---|
PolygonOptions()
创建PolygonOptions对象。
|
| 限定符和类型 | 方法和说明 |
|---|---|
PolygonOptions |
add(LatLng... paramArrayOfLatLng)
添加多个多边形边框的顶点
Add multiple vertices to the polygon border |
PolygonOptions |
add(LatLng paramLatLng)
添加一个多边形边框的顶点
Add a vertex to the polygon border |
PolygonOptions |
addAll(java.lang.Iterable<LatLng> paramIterable)
添加多个多边形边框的顶点
Add multiple vertices to the polygon border |
PolygonOptions |
addHoles(BaseHoleOptions... paramArrayOfOptions)
设置空心洞的配置项
Set the configuration options for the hollow hole |
PolygonOptions |
addHoles(java.lang.Iterable paramIterable)
添加空心洞的配置项
Configuration item for adding hollow holes |
PolygonOptions |
fillColor(int paramInt)
设置多边形的填充颜色,32位ARGB格式。
|
int |
getFillColor()
获取多边形的填充颜色
Get the fill color of the polygon |
java.util.List |
getHoleOptions()
获取空心洞的配置项
Get the configuration options for the hollow hole |
AMapPara.LineJoinType |
getLineJoinType()
返回边框连接处形状
Return the shape of the border joint |
java.util.List<LatLng> |
getPoints()
返回多边形坐标点列表
Return the list of polygon coordinate points |
int |
getStrokeColor()
获取多边形的边框颜色
Get the border color of the polygon |
int |
getStrokeDottedLineType()
获取多边形的边框虚线形状。
|
float |
getStrokeWidth()
获取多边形的边框宽度
Get the border width of the polygon |
float |
getZIndex()
获取多边形的Z轴数值
Get the Z-axis value of the polygon |
boolean |
isVisible()
获取多边形是否可见
Get whether the polygon is visible |
PolygonOptions |
lineJoinType(AMapPara.LineJoinType lineJoinType)
设置边框连接处形状
Set the shape of the border joint |
PolygonOptions |
setStrokeDottedLineType(int type)
设置多边形的边框虚线形状。
|
PolygonOptions |
strokeColor(int paramInt)
设置多边形的边框颜色,32位 ARGB格式,默认为黑色。
|
PolygonOptions |
strokeWidth(float paramFloat)
设置多边形的边框宽度,单位:像素。
|
PolygonOptions |
visible(boolean paramBoolean)
设置多边形是否可见。
|
PolygonOptions |
zIndex(float paramFloat)
设置多边形的Z轴数值
Set the Z-axis value of the polygon |
public static final PolygonOptionsCreator CREATOR
public PolygonOptions add(LatLng paramLatLng)
public PolygonOptions add(LatLng... paramArrayOfLatLng)
public PolygonOptions addAll(java.lang.Iterable<LatLng> paramIterable)
public PolygonOptions addHoles(BaseHoleOptions... paramArrayOfOptions)
public PolygonOptions addHoles(java.lang.Iterable paramIterable)
public PolygonOptions strokeWidth(float paramFloat)
public PolygonOptions strokeColor(int paramInt)
public PolygonOptions fillColor(int paramInt)
public PolygonOptions zIndex(float paramFloat)
public PolygonOptions visible(boolean paramBoolean)
public java.util.List<LatLng> getPoints()
public float getStrokeWidth()
public int getStrokeColor()
public int getFillColor()
public float getZIndex()
public boolean isVisible()
public java.util.List getHoleOptions()
public PolygonOptions lineJoinType(AMapPara.LineJoinType lineJoinType)
lineJoinType - 形状
public AMapPara.LineJoinType getLineJoinType()
public PolygonOptions setStrokeDottedLineType(int type)
type - 形状:AMapPara.DOTTEDLINE_TYPE_DEFAULT:不绘制虚线(默认)AMapPara.DOTTEDLINE_TYPE_SQUARE:方形;AMapPara.DOTTEDLINE_TYPE_CIRCLE:圆形;AMapPara.DOTTEDLINE_TYPE_DEFAULT: Do not draw dotted lines (default)AMapPara.DOTTEDLINE_TYPE_SQUARE: Square;AMapPara.DOTTEDLINE_TYPE_CIRCLE: Circle;public int getStrokeDottedLineType()
AMapPara.DOTTEDLINE_TYPE_DEFAULT:不绘制虚线(默认)AMapPara.DOTTEDLINE_TYPE_DEFAULT: Do not draw dotted lines (default)