public class Node
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.awt.Color |
bgcolor |
java.awt.Color |
bordercolor |
static Node[] |
empty
An always empty array.
|
Node[] |
kids
The children of this node.
|
java.lang.String |
text
The displayed text of the node.
|
java.awt.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(java.lang.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 java.lang.String text
public java.awt.Color textcolor
public java.awt.Color bgcolor
public java.awt.Color bordercolor