Package org.scijava.util
Class DefaultTreeNode<T>
- java.lang.Object
-
- org.scijava.util.DefaultTreeNode<T>
-
-
Constructor Summary
Constructors Constructor Description DefaultTreeNode(T data, TreeNode<?> parent)Creates a new tree node wrapping the given data, located in the tree beneath the specified parent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TreeNode<?>>children()Gets the node's children.Tdata()Gets the data associated with the node.TreeNode<?>parent()Gets the parent of this node.voidsetParent(TreeNode<?> parent)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.scijava.util.TreeNode
addChildren
-
-
-
-
Method Detail
-
data
public T data()
Description copied from interface:TreeNodeGets the data associated with the node.
-
parent
public TreeNode<?> parent()
Description copied from interface:TreeNodeGets the parent of this node.
-
setParent
public void setParent(TreeNode<?> parent)
-
-