public final class Arc extends BaseOverlay
它有以下属性:
弧形边框的宽度。这个值设置后不会受到可视区域缩放级别的影响。默认为10。
边框颜色是一个ARGB格式,ARGB请参考android.graphics.Color。默认为黑色。
Z轴是控制覆盖物重复区域的绘制顺序的值。Z轴较大的覆盖物会绘制在Z轴较小的覆盖物上面。如果两个覆盖物的Z轴数值相同,则覆盖情况将随机。默认值为0。
标示弧形是否可见。如果可见性为否,则不会被绘制。
弧形方法必须在主线程中调用,否则会抛出IllegalStateException。
It has the following properties:
The width of the arc's border. This value is not affected by the zoom level of the visible area after being set. Default is 10.
The border color is in ARGB format. For ARGB, refer to android.graphics.Color. Default is black.
The Z-axis is a value that controls the drawing order of overlapping overlays. Overlays with higher Z-axis values are drawn above those with lower values. If two overlays have the same Z-axis value, the overlap will be random. Default is 0.
Indicates whether the arc is visible. If visibility is false, it will not be drawn.
Arc methods must be called in the main thread, otherwise an IllegalStateException will be thrown.
Field1, Field2, overlayName| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(java.lang.Object paramObject) |
java.lang.String |
getId()
返回弧形的 Id。
|
int |
getStrokeColor()
返回弧形的边框颜色
Returns the border color of the arc |
float |
getStrokeWidth()
返回弧形的边框宽度
Returns the border width of the arc |
float |
getZIndex()
返回圆弧Z轴数值
Returns the Z-axis value of the arc |
int |
hashCode() |
boolean |
isVisible()
返回圆弧是否可见
Returns whether the arc is visible |
void |
remove()
删除从地图对象里圆弧
Remove the arc from the map object |
void |
setStrokeColor(int color)
设置弧形的边框颜色。
|
void |
setStrokeWidth(float width)
设置弧形的边框宽度,单位像素。
|
void |
setVisible(boolean visible)
设置弧形的可见属性。
|
void |
setZIndex(float zIndex)
设置弧形Z轴数值。
|
method1, method2public void remove()
public java.lang.String getId()
public void setStrokeWidth(float width)
width - 边框宽度,单位像素
public float getStrokeWidth()
public void setStrokeColor(int color)
color - 边框颜色,ARGB格式
public int getStrokeColor()
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.Object