public class ChartIcon extends java.lang.Object implements BaseChartIcon, XMLable
XML_TAG
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone() |
protected BaseChartGlyph |
createGlyph() |
java.awt.image.BufferedImage |
createIconImage()
为Chart生成BufferedImage
|
BaseChart |
getChart()
返回缩略图中的图表
|
int |
getIconHeight()
返回缩略图的高度
|
int |
getIconWidth()
返回缩略图的宽度
|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
画出缩略图Icon
|
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
void |
setBaseChart(BaseChart baseChart)
设置BaseChart
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
public ChartIcon(BaseChart chart)
public void setBaseChart(BaseChart baseChart)
setBaseChart
在接口中 BaseChartIcon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
在接口中 javax.swing.Icon
g
- 图形的上下文c
- 所在的Componentx
- 缩略图的起始坐标xy
- 缩略图的起始坐标yprotected BaseChartGlyph createGlyph()
public int getIconWidth()
getIconWidth
在接口中 javax.swing.Icon
public int getIconHeight()
getIconHeight
在接口中 javax.swing.Icon
public BaseChart getChart()
public java.awt.image.BufferedImage createIconImage()
createIconImage
在接口中 BaseChartIcon
public void readXML(XMLableReader reader)
XMLReadable
readXML
在接口中 XMLReadable
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
XMLWriter
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常