com.phoenixst.plexus
public class DefaultRootedTreeView extends DefaultOrientedForestView implements RootedTree
RootedTree
interface.
Since: 1.0
Version: $Revision: 1.18 $
Constructor Summary | |
---|---|
DefaultRootedTreeView(Graph graph, Predicate parentPredicate, Predicate childPredicate)
Creates a new DefaultRootedTreeView . | |
DefaultRootedTreeView(Graph graph, Object root, Predicate parentPredicate, Predicate childPredicate)
Creates a new DefaultRootedTreeView . |
Method Summary | |
---|---|
int | getDepth(Object node)
Gets the depth of the specified node. |
Object | getRoot()
Gets the root node. |
Object | getRoot(Object node) |
boolean | isTreeNode(Object node) |
Collection | rootNodes() |
void | setRoot(Object root)
Sets the root node, which must already be present in the
Graph . |
DefaultRootedTreeView
.DefaultRootedTreeView
.NoSuchNodeException
.Graph
.