| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ObservableList | children
This list holds the child nodes of the current node in the tree hierarchy. |
| private static final boolean | |
| private static final double | |
| private static final double | |
| private final BooleanProperty | |
| private final DoubleProperty | |
| private final ObservableList | linkedNodes
This list holds references to nodes that are directly linked or associated with the current node. |
| private String | name
Represents the name identifier for this node. |
| private final ReadOnlyObjectWrapper | |
| public static final double | |
| private final ObjectProperty | |
| private final DoubleProperty |
| Modifier and Type | Method and Description |
|---|---|
| public BooleanProperty | |
| public ObservableList | |
| public int | |
| public TreeNode | |
| public double | |
| public TreeNode | |
| public int | |
| public ObservableList | |
| public String | |
| public TreeNode | |
| public T | |
| public double | |
| public DoubleProperty | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | Returns: true if the node is the root node of the treeIf there is no parent node, it is the root node |
| public ReadOnlyObjectProperty | |
| public void | |
| public void | |
| public void | |
| protected void | |
| public void | |
| public void | |
| public void | |
| public Stream | |
| public String | |
| public ObjectProperty | |
| public DoubleProperty |
| children | back to summary |
|---|---|
| private final ObservableList<TreeNode<T>> children This list holds the child nodes of the current node in the tree hierarchy. Each child node in this list is directly connected to and descends from the current node. It represents the default connectivity in the tree structure, where parent nodes are intrinsically linked to their children. | |
| DEFAULT_EXPANDED | back to summary |
|---|---|
| private static final boolean DEFAULT_EXPANDED | |
| DEFAULT_HEIGHT | back to summary |
|---|---|
| private static final double DEFAULT_HEIGHT | |
| DEFAULT_WIDTH | back to summary |
|---|---|
| private static final double DEFAULT_WIDTH | |
| expanded | back to summary |
|---|---|
| private final BooleanProperty expanded | |
| height | back to summary |
|---|---|
| private final DoubleProperty height | |
| linkedNodes | back to summary |
|---|---|
| private final ObservableList<TreeNode<T>> linkedNodes This list holds references to nodes that are directly linked or associated with the current node. Unlike the 'children' list, which represents child nodes in a hierarchical structure, the 'linkedNodes' list represents peers or other related nodes that have a specific connection or relationship with this node, but are not necessarily its descendants in the tree hierarchy. | |
| name | back to summary |
|---|---|
| private String name Represents the name identifier for this node. ------------------------------------------------ The primary purpose of the 'name' is to assist in determining the style of the node and its links. For instance: 1. If the node's name is 'n', then the style class for the node would be 'node-n'. 2. For a regular parent-child relationship, if a node with name 'n' has a parent named 'm', the link connecting them will have a style class 'link-m-n'. 3. For any extra links, say from node 'p' to node 'n', the style class for the link would be 'link-extra-p-n'. ------------------------------------------------ Important considerations: - If the 'name' is null, all the above rules become invalid. - Both the relevant node and the current node must possess non-null 'name' values for these styling rules to apply. ------------------------------------------------ This naming convention aids in providing a systematic approach for styling, making it directly relatable to the node's relationship and connection type. | |
| parent | back to summary |
|---|---|
| private final ReadOnlyObjectWrapper<TreeNode<T>> parent | |
| USE_TREE_CELL_SIZE | back to summary |
|---|---|
| public static final double USE_TREE_CELL_SIZE | |
| value | back to summary |
|---|---|
| private final ObjectProperty<T> value | |
| width | back to summary |
|---|---|
| private final DoubleProperty width | |
| TreeNode | back to summary |
|---|---|
| public TreeNode() | |
| TreeNode | back to summary |
|---|---|
| public TreeNode(T value) | |
| expandedProperty | back to summary |
|---|---|
| public BooleanProperty expandedProperty() | |
| getChildren | back to summary |
|---|---|
| public ObservableList | |
| getDepth | back to summary |
|---|---|
| public int getDepth() Get the depth of the node in the tree. The depth of the root node is 0.
| |
| getFirstChild | back to summary |
|---|---|
public TreeNode
| |
| getHeight | back to summary |
|---|---|
| public double getHeight() | |
| getLastChild | back to summary |
|---|---|
public TreeNode
| |
| getLevel | back to summary |
|---|---|
| public int getLevel() | |
| getLinkedNodes | back to summary |
|---|---|
| public ObservableList | |
| getName | back to summary |
|---|---|
| public String getName() | |
| getParent | back to summary |
|---|---|
| public TreeNode | |
| getValue | back to summary |
|---|---|
| public T getValue() | |
| getWidth | back to summary |
|---|---|
| public double getWidth() | |
| heightProperty | back to summary |
|---|---|
| public DoubleProperty heightProperty() | |
| isAncestorCollapsed | back to summary |
|---|---|
public boolean isAncestorCollapsed()
| |
| isExpanded | back to summary |
|---|---|
| public boolean isExpanded() | |
| isFirstChild | back to summary |
|---|---|
public boolean isFirstChild()
| |
| isLastChild | back to summary |
|---|---|
public boolean isLastChild()
| |
| isLeaf | back to summary |
|---|---|
public boolean isLeaf()
| |
| isRoot | back to summary |
|---|---|
| public boolean isRoot() If there is no parent node, it is the root node
| |
| parentProperty | back to summary |
|---|---|
| public ReadOnlyObjectProperty | |
| setExpanded | back to summary |
|---|---|
| public void setExpanded(boolean expanded) | |
| setHeight | back to summary |
|---|---|
| public void setHeight(double height) | |
| setName | back to summary |
|---|---|
| public void setName(String name) | |
| setParent | back to summary |
|---|---|
| protected void setParent(TreeNode<T> parent) | |
| setSize | back to summary |
|---|---|
| public void setSize(double width, double height) | |
| setValue | back to summary |
|---|---|
| public void setValue(T value) | |
| setWidth | back to summary |
|---|---|
| public void setWidth(double width) | |
| stream | back to summary |
|---|---|
| public Stream Convenient for traversing tree nodes. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| valueProperty | back to summary |
|---|---|
| public ObjectProperty | |
| widthProperty | back to summary |
|---|---|
| public DoubleProperty widthProperty() | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | characteristics()
Implements java. Returns a set of characteristics of this Spliterator and its elements. |
| public long | estimateSize()
Implements java. Returns an estimate of the number of elements that would be
encountered by a |
| public boolean | tryAdvance(Consumer<? super TreeNode<T>> action)
Implements java. If a remaining element exists: performs the given action on it,
returning |
| public Spliterator | trySplit()
Implements java. If this spliterator can be partitioned, returns a Spliterator covering elements, that will, upon return from this method, not be covered by this Spliterator. |
| queue | back to summary |
|---|---|
| private final Queue<TreeNode<T>> queue | |
| TreeNodeSpliterator | back to summary |
|---|---|
| pack-priv TreeNodeSpliterator(TreeNode<T> root) | |
| characteristics | back to summary |
|---|---|
| public int characteristics() Implements java. Doc from java. Returns a set of characteristics of this Spliterator and its
elements. The result is represented as ORed values from If a Spliterator reports an inconsistent set of characteristics (either those returned from a single invocation or across multiple invocations), no guarantees can be made about any computation using this Spliterator.
| |
| estimateSize | back to summary |
|---|---|
| public long estimateSize() Implements java. Doc from java. Returns an estimate of the number of elements that would be
encountered by a If this Spliterator is
| |
| tryAdvance | back to summary |
|---|---|
| public boolean tryAdvance(Consumer<? super TreeNode<T>> action) Implements java. Doc from java. If a remaining element exists: performs the given action on it,
returning Subsequent behavior of a spliterator is unspecified if the action throws an exception.
| |
| trySplit | back to summary |
|---|---|
| public Spliterator Implements java. Doc from java. If this spliterator can be partitioned, returns a Spliterator covering elements, that will, upon return from this method, not be covered by this Spliterator. If this Spliterator is Unless this Spliterator covers an infinite number of elements,
repeated calls to
This method may return
| |