Class TreeNodeViewSkin<T>
java.lang.Object
javafx.scene.control.SkinBase<TreeNodeView<T>>
com.dlsc.gemsfx.treeview.TreeNodeViewSkin<T>
- Type Parameters:
T- the type of the value stored in each tree node
- All Implemented Interfaces:
javafx.scene.control.Skin<TreeNodeView<T>>
Default skin for
TreeNodeView.
The skin computes node positions for regular and compact layouts, creates cells through the view's cell factory, and draws links using the configured link strategy.
-
Constructor Summary
ConstructorsConstructorDescriptionTreeNodeViewSkin(TreeNodeView<T> view) Creates a skin for the given tree node view. -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecomputeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) doublecomputeNodeHeight(TreeNode<T> node) Computes the height used to lay out the given node.doublecomputeNodeWidth(TreeNode<T> node) Computes the width used to lay out the given node.protected doublecomputePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) voidrefresh()Rebuilds the visual tree.Methods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMinHeight, computeMinWidth, consumeMouseEvents, dispose, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutChildren, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListeners
-
Constructor Details
-
TreeNodeViewSkin
Creates a skin for the given tree node view.- Parameters:
view- the control shown by this skin
-
-
Method Details
-
computeNodeWidth
-
computeNodeHeight
-
computePrefWidth
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computePrefWidthin classjavafx.scene.control.SkinBase<TreeNodeView<T>>
-
computePrefHeight
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computePrefHeightin classjavafx.scene.control.SkinBase<TreeNodeView<T>>
-
computeMaxWidth
protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMaxWidthin classjavafx.scene.control.SkinBase<TreeNodeView<T>>
-
computeMaxHeight
protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMaxHeightin classjavafx.scene.control.SkinBase<TreeNodeView<T>>
-
refresh
public void refresh()Rebuilds the visual tree.
-