public class TreeNode
extends java.lang.Object
Constructor and Description |
---|
TreeNode(TreeNode parent,
RdrNode rdrNode) |
Modifier and Type | Method and Description |
---|---|
TreeNode |
getFalseChild() |
RdrNode |
getRdrNode() |
TreeNode |
getTrueChild() |
int |
getX() |
int |
getY() |
boolean |
isFalseChild() |
boolean |
isLeaf() |
boolean |
isSelected() |
boolean |
isTrueChild() |
void |
moveBranch(int moveBy)
Moves this node and all its children to the left or right by the value passed.
|
void |
setFalseChild(TreeNode next) |
void |
setInitialX()
Sets the initial x coordinate for this node.
|
void |
setSelected(boolean b) |
void |
setTrueChild(TreeNode next) |
void |
setX(int x) |
void |
setY(int y) |
public TreeNode(TreeNode parent, RdrNode rdrNode)
public int getX()
public void setX(int x)
public int getY()
public void setY(int y)
public void setSelected(boolean b)
public boolean isSelected()
public RdrNode getRdrNode()
public void setTrueChild(TreeNode next)
public TreeNode getTrueChild()
public void setFalseChild(TreeNode next)
public TreeNode getFalseChild()
public boolean isLeaf()
public boolean isFalseChild()
public boolean isTrueChild()
public void setInitialX()
public void moveBranch(int moveBy)
moveBy
- if >0, moves the branch right by that number of columns; if <0,
move the branch left by that number of columns.