Constructor and Description |
---|
DefaultTreeNode(T data,
TreeNode<?> parent)
Creates a new tree node wrapping the given data, located in the tree
beneath the specified parent.
|
Modifier and Type | Method and Description |
---|---|
List<TreeNode<?>> |
children()
Gets the node's children.
|
T |
data()
Gets the data associated with the node.
|
TreeNode<?> |
parent()
Gets the parent of this node.
|
void |
setParent(TreeNode<?> parent) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChildren
public T data()
TreeNode
public TreeNode<?> parent()
TreeNode
public void setParent(TreeNode<?> parent)
Copyright © 2015–2022 SciJava. All rights reserved.