public final class Circle extends BaseOverlay
圆对象有以下属性:
The circle object has the following attributes:
Field1, Field2, overlayName| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
contains(LatLng latLng)
判断圆是否包含传入的经纬度点。
|
boolean |
equals(java.lang.Object paramObject) |
LatLng |
getCenter()
获取圆心经纬度坐标。
|
int |
getFillColor()
获取圆的填充颜色
Get the fill color of the circle. |
java.util.List |
getHoleOptions()
获取洞的配置项集合
Get the configuration items collection for the hole. |
java.lang.String |
getId()
返回圆的id。
|
double |
getRadius()
获取圆的半径,单位米。
|
int |
getStrokeColor()
获取圆的边框颜色
Get the border color of the circle. |
int |
getStrokeDottedLineType()
获取圆的边框虚线形状。
|
float |
getStrokeWidth()
获取圆的边框宽度。
|
float |
getZIndex()
获取圆的Z轴数值
Get the Z-axis value of the circle. |
int |
hashCode() |
boolean |
isVisible()
获取圆是否可见
Get whether the circle is visible. |
void |
remove()
删除从地图对象里圆
Delete the circle from the map object. |
void |
setCenter(LatLng center)
设置圆心经纬度坐标,参数不能为null,无默认值。
|
void |
setFillColor(int color)
设置圆的填充颜色。
|
void |
setHoleOptions(java.util.List options)
设置洞的配置项集合
Set the configuration items collection for the hole. |
void |
setRadius(double radius)
设置圆的半径,单位米。
|
void |
setStrokeColor(int color)
设置圆的边框颜色。
|
void |
setStrokeDottedLineType(int type)
设置圆的边框虚线形状。
|
void |
setStrokeWidth(float width)
设置圆的边框宽度,单位像素。
|
void |
setVisible(boolean visible)
设置圆的可见属性。
|
void |
setZIndex(float zIndex)
设置圆的Z轴数值。
|
method1, method2public void remove()
public java.lang.String getId()
public void setCenter(LatLng center)
center - 圆心经纬度坐标。
java.lang.NullPointerException - 如果圆心经纬度坐标为null。
public LatLng getCenter()
public void setRadius(double radius)
radius - 圆形半径,单位米。
java.lang.IllegalArgumentException - 如果传入的半径为负数。
public double getRadius()
public void setStrokeWidth(float width)
width - 边框宽度,单位像素。
java.lang.IllegalArgumentException - 如果宽度为负数。
public float getStrokeWidth()
public void setStrokeColor(int color)
color - 边框颜色,ARGB格式。
public int getStrokeColor()
public void setFillColor(int color)
color - 填充颜色ARGB格式。
public int getFillColor()
public void setZIndex(float zIndex)
zIndex - Z轴数值。
public float getZIndex()
public void setVisible(boolean visible)
visible - true为可见;false不可见。
public boolean isVisible()
public boolean equals(java.lang.Object paramObject)
equals 在类中 java.lang.Objectpublic int hashCode()
hashCode 在类中 java.lang.Objectpublic boolean contains(LatLng latLng)
latLng - 经纬度点。
public void setHoleOptions(java.util.List options)
options - 洞的配置项集合
public java.util.List getHoleOptions()
public void 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)