public class LineMarkerIcon extends java.lang.Object implements XMLable
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
XML_TAG |
构造器和说明 |
---|
LineMarkerIcon() |
LineMarkerIcon(Background background,
int lineStyle,
Marker marker)
初始化指定背景、线条格式和标记类型的线型
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object ob) |
float |
getAlpha()
返回线条的透明度
|
Background |
getBackground()
获取线条的背景
|
int |
getLineStyle()
获取线的样式
|
Marker |
getMarker()
获取线条的标记类型
|
void |
paint(java.awt.Graphics g,
int iconSize) |
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
void |
setAlpha(float alpha)
设置线条的透明度
|
void |
setBackground(Background background)
设置线条的背景
|
void |
setLineStyle(int lineStyle)
设置线条的线的样式
|
void |
setMarker(Marker marker)
设置线条上的标记类型
|
JSONObject |
toJSONObject(Repository repo)
转为json数据
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
public static final java.lang.String XML_TAG
public LineMarkerIcon()
public LineMarkerIcon(Background background, int lineStyle, Marker marker)
background
- 背景lineStyle
- 线条格式marker
- 标记类型public void setAlpha(float alpha)
alpha
- 透明度,有效值为0到1之间的数public float getAlpha()
public void setMarker(Marker marker)
marker
- 标记类型public Marker getMarker()
public void setBackground(Background background)
background
- 背景public Background getBackground()
public void setLineStyle(int lineStyle)
lineStyle
- 直线的样式public int getLineStyle()
public void paint(java.awt.Graphics g, int iconSize)
public void readXML(XMLableReader reader)
XMLReadable
readXML
在接口中 XMLReadable
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
XMLWriter
public boolean equals(java.lang.Object ob)
equals
在类中 java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常public JSONObject toJSONObject(Repository repo) throws JSONException
repo
- 请求JSONException
- 抛错