public class CellImagePainter extends TagPainter
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
XML_TAG |
构造器和说明 |
---|
CellImagePainter()
无参构造函数在反序列化的时候反射调用
|
CellImagePainter(CellImage cellImage) |
CellImagePainter(java.awt.Image image) |
CellImagePainter(java.awt.Image image,
java.lang.String suffix) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(java.lang.Object obj) |
java.awt.Image |
getImage() |
java.lang.String |
getSuffix()
获取图片后缀
|
java.lang.String |
getUri() |
int |
hashCode() |
void |
paint(java.awt.Graphics g,
int width,
int height,
int resolution,
Style style)
绘制其中的图片
|
void |
readXML(XMLableReader reader)
从XML文件中读取对象
|
void |
setImage(java.awt.Image image) |
void |
writeXML(XMLPrintWriter writer)
将对象写入到XML文件
|
paintTag
clone, toJSONObject, toJSONObject
public static final java.lang.String XML_TAG
public CellImagePainter()
public CellImagePainter(java.awt.Image image)
public CellImagePainter(java.awt.Image image, java.lang.String suffix)
public CellImagePainter(CellImage cellImage)
public java.lang.String getUri()
public java.awt.Image getImage()
public void setImage(java.awt.Image image)
public java.lang.String getSuffix()
public void readXML(XMLableReader reader)
AbstractPainter
readXML
在接口中 XMLReadable
readXML
在类中 AbstractPainter
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
AbstractPainter
writeXML
在接口中 XMLWriter
writeXML
在类中 AbstractPainter
writer
- XML写入对象public void paint(java.awt.Graphics g, int width, int height, int resolution, Style style)
g
- 图形上下文width
- 目标图形的宽度height
- 目标图形的高度resolution
- 屏幕分辨率style
- 样式public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
public int hashCode()
hashCode
在类中 java.lang.Object