public interface Painter extends XMLable
| 限定符和类型 | 方法和说明 |
|---|---|
void |
paint(java.awt.Graphics g,
int width,
int height,
int resolution,
Style style)
根据指定的图形上下文、目标图形的宽度和高度、屏幕分辨率以及样式画出目标图形
|
void |
paintTag(Repository repo,
int width,
int height,
Style style,
Tag tag)
画出图形,生成 img 标签,加入上层 tag
|
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形式输出
|
readXMLclonevoid paint(java.awt.Graphics g,
int width,
int height,
int resolution,
Style style)
g - 图形上下文width - 目标图形的宽度height - 目标图形的高度resolution - 屏幕分辨率style - 样式JSONObject toJSONObject(NodeVisitor visitor, Repository repo, int width, int height) throws JSONException
visitor - 访问者repo - 网络请求上细纹width - 宽度height - 高度JSONExceptionJSONObject toJSONObject(NodeVisitor visitor, Repository repo, int width, int height, Style style) throws JSONException
visitor - 访问者repo - 网络请求上细纹width - 宽度height - 高度style - 样式JSONExceptionvoid paintTag(Repository repo, int width, int height, Style style, Tag tag)
repo - 网络请求上细纹width - 宽度height - 高度style - 样式tag - 上层 html 标签