|
JComponentPack 1.5.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.TextNode
public class TextNode
TextNode provides a node contains
a text.
| Constructor Summary | |
|---|---|
TextNode()
Constructs a text node with the empty text. |
|
TextNode(String text)
Constructs a text node with the specify text c. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
void |
doLayout()
Layout the children nodes. |
protected void |
drawShape(Graphics2D g,
Shape s)
|
Dimension |
getPreferredSize()
Returns the preferred size of this node. |
String |
getText()
Returns the text for this node. |
void |
setText(String text)
Sets the text for this node. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TextNode()
public TextNode(String text)
c.
text - the text for this node
NullPointerException - if the text is null| Method Detail |
|---|
public Dimension getPreferredSize()
Node
getPreferredSize in interface NodegetPreferredSize in class AbstractNodepublic void doLayout()
Node
doLayout in interface NodedoLayout in class AbstractNodepublic String getText()
public void setText(String text)
text - the text for this node
protected void drawShape(Graphics2D g,
Shape s)
drawShape in class AbstractNodepublic Object clone()
clone in class AbstractNode
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||