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
PaintertoJSONObject 在接口中 Paintervisitor - 访问者repo - 网络请求上细纹width - 宽度height - 高度JSONExceptionpublic JSONObject toJSONObject(NodeVisitor visitor, Repository repo, int width, int height, Style style) throws JSONException
PaintertoJSONObject 在接口中 Paintervisitor - 访问者repo - 网络请求上细纹width - 宽度height - 高度style - 样式JSONExceptionpublic void readXML(XMLableReader reader)
readXML 在接口中 XMLReadablereader - XML读取对象XMLableReaderpublic void writeXML(XMLPrintWriter writer)
public void paintTag(Repository repo, int width, int height, Style style, Tag tag)
Painterpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone 在接口中 FCloneableclone 在类中 java.lang.Objectjava.lang.CloneNotSupportedException