| Modifier and Type | Class and Description |
|---|---|
private static class |
TreeLayoutAdaptor.AntlrTreeChildrenIterable |
private static class |
TreeLayoutAdaptor.AntlrTreeChildrenReverseIterable |
| Constructor and Description |
|---|
TreeLayoutAdaptor(Tree root) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Iterable<Tree> |
getChildren(Tree node) |
java.lang.Iterable<Tree> |
getChildrenReverse(Tree node) |
Tree |
getFirstChild(Tree parentNode) |
Tree |
getLastChild(Tree parentNode) |
Tree |
getRoot() |
boolean |
isChildOfParent(Tree node,
Tree parentNode) |
boolean |
isLeaf(Tree node) |
private Tree root
public TreeLayoutAdaptor(Tree root)
public boolean isLeaf(Tree node)
isLeaf in interface org.abego.treelayout.TreeForTreeLayout<Tree>public boolean isChildOfParent(Tree node, Tree parentNode)
isChildOfParent in interface org.abego.treelayout.TreeForTreeLayout<Tree>public Tree getRoot()
getRoot in interface org.abego.treelayout.TreeForTreeLayout<Tree>public Tree getLastChild(Tree parentNode)
getLastChild in interface org.abego.treelayout.TreeForTreeLayout<Tree>public Tree getFirstChild(Tree parentNode)
getFirstChild in interface org.abego.treelayout.TreeForTreeLayout<Tree>public java.lang.Iterable<Tree> getChildrenReverse(Tree node)
getChildrenReverse in interface org.abego.treelayout.TreeForTreeLayout<Tree>