| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Group | |
| private final List | |
| private final Map | |
| private final Map | |
| private final Map | levelToMaxDimensionMap
A map storing the maximum dimension (either width or height based on the layout direction) for each level (or depth) in the tree. |
| private final Map | |
| private final Map | nodeToPositionMap
The position of the nodes |
| private final Map | nodeTotalDimensionMap
A map storing the total dimension (either width or height based on the layout direction) of each node. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private double | |
| private double | computeCompactAdjustedXPosition(double x, double maxLevelWidth, double nodeWidth, HPos alignment, TreeNodeView.
|
| private double | computeCompactAdjustedYPosition(double y, double maxLevelHeight, double nodeHeight, VPos alignment, TreeNodeView.
|
| protected double | computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Computes the maximum allowable height of the Skin, based on the provided width. |
| protected double | computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Computes the maximum allowable width of the Skin, based on the provided height. |
| public double | |
| public double | |
| protected double | computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Calculates the preferred height of this |
| protected double | computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Calculates the preferred width of this |
| private double | computeRegularAdjustedXPosition(double x, double maxLevelWidth, double nodeWidth, HPos alignment, TreeNodeView.
|
| private double | computeRegularAdjustedYPosition(double y, double maxLevelHeight, double nodeHeight, VPos alignment, TreeNodeView.
|
| private InvalidationListener | |
| private ListChangeListener | |
| private void | |
| private void | |
| private void | |
| private double | |
| private double | |
| private void | |
| private void | |
| private void | |
| private void | positionNodesCompactHorizontally(TreeNode<T> root, double maxColumnHeight, TreeNodeView.
|
| private void | positionNodesCompactVertically(TreeNode<T> root, double maxRowWidth, TreeNodeView.
|
| private void | |
| private void | positionNodesRegularHorizontally(TreeNode<T> node, double x, double y, TreeNodeView.
|
| private void | positionNodesRegularVertically(TreeNode<T> node, double x, double y, TreeNodeView.
|
| public void | |
| private void | |
| private void | toggleChildrenVisibility(TreeNode<T> node, boolean isVisible, boolean updateTreeAfterToggle)
Toggle the visibility of the node's children |
| private void |
| childrenListListenerMap | back to summary |
|---|---|
| private final Map<TreeNode<T>, ListChangeListener<TreeNode<T>>> childrenListListenerMap | |
| contentGroup | back to summary |
|---|---|
| private final Group contentGroup | |
| currentLevelNodesCache | back to summary |
|---|---|
| private final List<TreeNode<T>> currentLevelNodesCache | |
| expandListenerMap | back to summary |
|---|---|
| private final Map<TreeNode<T>, InvalidationListener> expandListenerMap | |
| invailidateListenerMap | back to summary |
|---|---|
| private final Map<TreeNode<T>, InvalidationListener> invailidateListenerMap | |
| levelToMaxDimensionMap | back to summary |
|---|---|
| private final Map<Integer, Double> levelToMaxDimensionMap A map storing the maximum dimension (either width or height based on the layout direction) for each level (or depth) in the tree. - For LEFT_TO_RIGHT or RIGHT_TO_LEFT layouts, it represents the maximum height for a particular depth or level. - For TOP_TO_BOTTOM or BOTTOM_TO_TOP layouts, it represents the maximum width for a particular depth or level. This map ensures that nodes on the same level do not overlap and provides consistent spacing across different layout directions. | |
| nodeToComponentsMap | back to summary |
|---|---|
| private final Map<TreeNode<T>, List<Node>> nodeToComponentsMap | |
| nodeToPositionMap | back to summary |
|---|---|
| private final Map<TreeNode<T>, Point2D> nodeToPositionMap The position of the nodes | |
| nodeTotalDimensionMap | back to summary |
|---|---|
| private final Map<TreeNode<T>, Double> nodeTotalDimensionMap A map storing the total dimension (either width or height based on the layout direction) of each node. - For LEFT_TO_RIGHT or RIGHT_TO_LEFT layouts, it represents the total height of a node, which includes the node itself and its maximum subtree height. - For TOP_TO_BOTTOM or BOTTOM_TO_TOP layouts, it represents the total width of a node, including the node and its maximum subtree width. The purpose of this map is to dynamically adapt to different layout directions and provide a consistent way to handle node dimensions. | |
| TreeNodeViewSkin | back to summary |
|---|---|
| public TreeNodeViewSkin(TreeNodeView<T> view) | |
| addListenersToNode | back to summary |
|---|---|
| private void addListenersToNode(TreeNode<T> node) | |
| buildTree | back to summary |
|---|---|
| private void buildTree() | |
| calculatePositions | back to summary |
|---|---|
| private void calculatePositions(TreeNode<T> root) | |
| clearMapsForBuild | back to summary |
|---|---|
| private void clearMapsForBuild() Clear all maps; (including listeners) | |
| clearMapsForUpdate | back to summary |
|---|---|
| private void clearMapsForUpdate() Clear the position information of the nodes; do not clear the listeners | |
| computeAndCacheNodeDimension | back to summary |
|---|---|
| private double computeAndCacheNodeDimension(TreeNode<T> node) | |
| computeCompactAdjustedXPosition | back to summary |
|---|---|
| private double computeCompactAdjustedXPosition(double x, double maxLevelWidth, double nodeWidth, HPos alignment, TreeNodeView. | |
| computeCompactAdjustedYPosition | back to summary |
|---|---|
| private double computeCompactAdjustedYPosition(double y, double maxLevelHeight, double nodeHeight, VPos alignment, TreeNodeView. | |
| computeMaxHeight | back to summary |
|---|---|
| protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the maximum allowable height of the Skin, based on the provided width.
| |
| computeMaxWidth | back to summary |
|---|---|
| protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the maximum allowable width of the Skin, based on the provided height.
| |
| computeNodeHeight | back to summary |
|---|---|
| public double computeNodeHeight(TreeNode<T> node) | |
| computeNodeWidth | back to summary |
|---|---|
| public double computeNodeWidth(TreeNode<T> node) | |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred height of this
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred width of this
| |
| computeRegularAdjustedXPosition | back to summary |
|---|---|
| private double computeRegularAdjustedXPosition(double x, double maxLevelWidth, double nodeWidth, HPos alignment, TreeNodeView. | |
| computeRegularAdjustedYPosition | back to summary |
|---|---|
| private double computeRegularAdjustedYPosition(double y, double maxLevelHeight, double nodeHeight, VPos alignment, TreeNodeView. | |
| createExpandListener | back to summary |
|---|---|
| private InvalidationListener createExpandListener(TreeNode<T> node) | |
| createNodeListChangeListener | back to summary |
|---|---|
| private ListChangeListener | |
| drawAdditionalLinkedNodes | back to summary |
|---|---|
| private void drawAdditionalLinkedNodes() | |
| drawLinksForNode | back to summary |
|---|---|
| private void drawLinksForNode(TreeNode<T> node) | |
| drawNode | back to summary |
|---|---|
| private void drawNode(TreeNode<T> node) | |
| findMaxColumnHeight | back to summary |
|---|---|
| private double findMaxColumnHeight(TreeNode<T> root) | |
| findMaxRowWidth | back to summary |
|---|---|
| private double findMaxRowWidth(TreeNode<T> root) Calculate the width of the widest row/level in the tree. | |
| initNodeListeners | back to summary |
|---|---|
| private void initNodeListeners() | |
| initTree | back to summary |
|---|---|
| private void initTree() | |
| positionNodesCompact | back to summary |
|---|---|
| private void positionNodesCompact(TreeNode<T> root) | |
| positionNodesCompactHorizontally | back to summary |
|---|---|
| private void positionNodesCompactHorizontally(TreeNode<T> root, double maxColumnHeight, TreeNodeView. | |
| positionNodesCompactVertically | back to summary |
|---|---|
| private void positionNodesCompactVertically(TreeNode<T> root, double maxRowWidth, TreeNodeView. | |
| positionNodesRegular | back to summary |
|---|---|
| private void positionNodesRegular(TreeNode<T> root) | |
| positionNodesRegularHorizontally | back to summary |
|---|---|
| private void positionNodesRegularHorizontally(TreeNode<T> node, double x, double y, TreeNodeView. | |
| positionNodesRegularVertically | back to summary |
|---|---|
| private void positionNodesRegularVertically(TreeNode<T> node, double x, double y, TreeNodeView. | |
| refresh | back to summary |
|---|---|
| public void refresh() | |
| removeListenersFromNode | back to summary |
|---|---|
| private void removeListenersFromNode(TreeNode<T> removedNode) | |
| toggleChildrenVisibility | back to summary |
|---|---|
| private void toggleChildrenVisibility(TreeNode<T> node, boolean isVisible, boolean updateTreeAfterToggle) Toggle the visibility of the node's children | |
| updateTree | back to summary |
|---|---|
| private void updateTree() When expanding or collapsing, the display of the tree needs to be updated | |