|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprefuse.data.tree.AbstractDeclarativeTree<N,E>
prefuse.data.tree.NodeBasedDeclarativeTree<N,E>
N - E - public class NodeBasedDeclarativeTree<N extends Node<N,E>,E extends Edge<N,E>>
Implements a DeclarativeTree using the supplied node as the root node of the tree.
| Constructor Summary | |
|---|---|
NodeBasedDeclarativeTree()
|
|
NodeBasedDeclarativeTree(N root)
|
|
| Method Summary | |
|---|---|
java.util.List<E> |
childEdges(N n)
Get all the edges connecting a child to the parent node. |
java.util.List<N> |
children(N parent)
Get all the children of the parent node. |
N |
getNextSibling(N node)
Get the next sibling of the given node. |
N |
getParent(N child)
Get a node's parent node |
E |
getParentEdge(N child)
Get the edge to the given node's parent. |
N |
getPreviousSibling(N node)
Get the previous sibling of the given node. |
| Methods inherited from class prefuse.data.tree.AbstractDeclarativeTree |
|---|
getDepth, getNodeCount, getNodeCountFrom, getRoot, setRoot |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeBasedDeclarativeTree(N root)
public NodeBasedDeclarativeTree()
| Method Detail |
|---|
public java.util.List<N> children(N parent)
DeclarativeTree
public N getNextSibling(N node)
DeclarativeTree
getNextSibling in interface DeclarativeTree<N extends Node<N,E>,E extends Edge<N,E>>getNextSibling in class AbstractDeclarativeTree<N extends Node<N,E>,E extends Edge<N,E>>node - a node
public N getPreviousSibling(N node)
DeclarativeTree
getPreviousSibling in interface DeclarativeTree<N extends Node<N,E>,E extends Edge<N,E>>getPreviousSibling in class AbstractDeclarativeTree<N extends Node<N,E>,E extends Edge<N,E>>node - a node
public N getParent(N child)
DeclarativeTree
public E getParentEdge(N child)
DeclarativeTree
public java.util.List<E> childEdges(N n)
DeclarativeTree
n - the parent node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||