Constructor and Description |
---|
TreeLayoutAdaptor(Tree root) |
Modifier and Type | Method and Description |
---|---|
Iterable<Tree> |
getChildren(Tree node) |
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) |
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 Iterable<Tree> getChildrenReverse(Tree node)
getChildrenReverse
in interface org.abego.treelayout.TreeForTreeLayout<Tree>
Copyright © 1992–2020 ANTLR. All rights reserved.