|
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.ComponentNode
public class ComponentNode
ComponentNode provides a node contains
a component.
ComponentNode is immutable
| Constructor Summary | |
|---|---|
ComponentNode(Component c)
Constructs a component node with the specify component c. |
|
| Method Summary | |
|---|---|
void |
doLayout()
Layout the children nodes. |
Component |
getComponent()
Returns the component for this node. |
void |
paint(Graphics2D g)
Paints itself. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ComponentNode(Component c)
c.
c - the component for this node
NullPointerException - if the component is null| Method Detail |
|---|
public Component getComponent()
public void doLayout()
Node
doLayout in interface NodedoLayout in class AbstractNodepublic void paint(Graphics2D g)
Node
paint in interface Nodepaint in class AbstractNodeg - the node Graphics object
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||