|
JComponentPack 1.3.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zfqjava.chart.AbstractNode
com.zfqjava.chart.ImageNode
public class ImageNode
ImageNode provides a node contain a Image.
ImageNode is immutable. Use image no URL or File to avoid
memory object.
| Constructor Summary | |
|---|---|
ImageNode(Image image)
Constructs a image node use the a image. |
|
ImageNode(ImageIcon imageIcon)
|
|
| Method Summary | |
|---|---|
protected Shape |
createPaintShape()
Creates the paint shape. |
protected void |
fillShape(Graphics2D g,
Shape s)
|
Image |
getImage()
Returns the image object for this node. |
Dimension |
getPreferredSize()
Returns the preferred size of this node. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ImageNode(Image image)
public ImageNode(ImageIcon imageIcon)
| Method Detail |
|---|
protected Shape createPaintShape()
AbstractNode
createPaintShape in class AbstractNodepublic Image getImage()
protected void fillShape(Graphics2D g,
Shape s)
fillShape in class AbstractNodepublic Dimension getPreferredSize()
Node
getPreferredSize in interface NodegetPreferredSize in class AbstractNode
|
JComponentPack 1.3.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||