Modifier and Type | Field and Description |
---|---|
Node |
down |
Node |
itergraph |
int |
n |
Node |
next |
java.awt.geom.Point2D.Float |
posLine |
Node |
sub |
Symbol |
sym |
NodeType |
typ |
boolean |
up |
Constructor and Description |
---|
Node(Grammar grammar,
NodeType typ,
Node sub) |
Node(Grammar grammar,
Symbol sym) |
Modifier and Type | Method and Description |
---|---|
void |
accept(net.hydromatic.clapham.graph.Chart.NodeVisitor nodeVisitor) |
void |
calcPos(Chart chart,
float posBegin)
Calculates the horizontal position of the symbols.
|
Size |
calcSize(Chart chart)
Calculates the size of each symbol.
|
void |
drawComponents(Chart chart,
java.awt.geom.Point2D.Float p,
Size s)
Draws the components from left to right.
|
void |
setWrapSize(Chart chart) |
void |
unparse(java.lang.StringBuffer buf) |
void |
visitChildren(net.hydromatic.clapham.graph.Chart.NodeVisitor visitor) |
public final int n
public boolean up
public final java.awt.geom.Point2D.Float posLine
public void unparse(java.lang.StringBuffer buf)
public void setWrapSize(Chart chart)
public void calcPos(Chart chart, float posBegin)
public void drawComponents(Chart chart, java.awt.geom.Point2D.Float p, Size s)
Each component paints itself and then give its coordinates to its
sub-components for a recursive call, or if applicable, a call to
the drawComponentsInverse(net.hydromatic.clapham.graph.Chart, java.awt.geom.Point2D.Float, net.hydromatic.clapham.graph.Size)
method.
public void accept(net.hydromatic.clapham.graph.Chart.NodeVisitor nodeVisitor)
public void visitChildren(net.hydromatic.clapham.graph.Chart.NodeVisitor visitor)