public abstract class AbstractPainter extends java.lang.Object implements Painter
构造器和说明 |
---|
AbstractPainter() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone()
克隆
|
void |
paintTag(Repository repo,
int width,
int height,
Style style,
Tag tag)
画出图形,生成 img 标签,加入上层 tag
|
void |
readXML(XMLableReader reader)
从XML文件中读取对象
|
JSONObject |
toJSONObject(NodeVisitor visitor,
Repository repo,
int width,
int height)
将Painter以JSON形式输出
|
JSONObject |
toJSONObject(NodeVisitor visitor,
Repository repo,
int width,
int height,
Style style)
将Painter以JSON形式输出
|
void |
writeXML(XMLPrintWriter writer)
将对象写入到XML文件
|
public JSONObject toJSONObject(NodeVisitor visitor, Repository repo, int width, int height) throws JSONException
Painter
toJSONObject
在接口中 Painter
visitor
- 访问者repo
- 网络请求上细纹width
- 宽度height
- 高度JSONException
public JSONObject toJSONObject(NodeVisitor visitor, Repository repo, int width, int height, Style style) throws JSONException
Painter
toJSONObject
在接口中 Painter
visitor
- 访问者repo
- 网络请求上细纹width
- 宽度height
- 高度style
- 样式JSONException
public void readXML(XMLableReader reader)
readXML
在接口中 XMLReadable
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
public void paintTag(Repository repo, int width, int height, Style style, Tag tag)
Painter
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException