public class Tree
extends java.lang.Object
Constructor and Description |
---|
Tree() |
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<Element> |
getNodes()
returns all nodes
|
Element |
getRoot()
returns the root of the tree
|
void |
newElement()
creates a new empty element
|
void |
setElementPart(int elementp)
sets an elementpart
|
void |
structureTree()
builds up the structure of the tree by determining the children and parent for each node.
|
java.lang.String |
treeToString()
converts an Element into a string, for debugging purposes
|
public java.util.ArrayList<Element> getNodes()
public void newElement()
public void setElementPart(int elementp)
elementp
- public java.lang.String treeToString()
public void structureTree()
public Element getRoot()