public class Node extends Object
Modifier and Type | Field and Description |
---|---|
Color |
bgcolor |
Color |
bordercolor |
static Node[] |
empty
An always empty array.
|
Node[] |
kids
The children of this node.
|
String |
text
The displayed text of the node.
|
Color |
textcolor |
float |
w
The node's width including the border.
|
float |
x
Coordinates of the node's upper left edge (including border).
|
float |
y
Coordinates of the node's upper left edge (including border).
|
Constructor and Description |
---|
Node()
Creates a node with empty text.
|
Node(String text)
Creates a node with the specified text.
|
Modifier and Type | Method and Description |
---|---|
protected void |
xShift(float dx)
Shifts horizontally the subtree the root of which is this.
|
public static final Node[] empty
public Node[] kids
null
.public float x
public float y
public float w
public String text
public Color textcolor
public Color bgcolor
public Color bordercolor
public Node(String text)
text
- the text to be displayed.public Node()