ScrollBar control.
ScrollBar
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ScrollBarBehavior | |
| private ScrollBarSkin. | |
| private Point2D | |
| private ScrollBarSkin. | |
| private double | |
| private StackPane | |
| private double | |
| private StackPane | |
| private StackPane | |
| private double | |
| private double |
| Access | Constructor and Description |
|---|---|
| public | ScrollBarSkin(ScrollBar
The control that this skin should be installed onto. control)Creates a new ScrollBarSkin instance, installing the necessary child
nodes into the Control |
| Modifier and Type | Method and Description |
|---|---|
| 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. |
| protected double | computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Computes the minimum allowable height of the Skin, based on the provided width. |
| protected double | computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Computes the minimum allowable width of the Skin, based on the provided height. |
| protected double | computePrefHeight(double height, 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 |
| public void | dispose()
Overrides javafx. Implements javafx. Called when a previously installed skin is about to be removed from its associated control. |
| pack-priv double | |
| private Node | |
| private Node | |
| private Node | |
| private Node | |
| private void | |
| protected void | layoutChildren(final double x, final double y, final double w, final double h)
Overrides javafx. Called during the layout pass of the scenegraph. |
| pack-priv double | |
| pack-priv double | |
| pack-priv void | positionThumb()
Called when ever either min, max or value changes, so thumb's layoutX, Y is recomputed. |
| behavior | back to summary |
|---|---|
| private final ScrollBarBehavior behavior | |
| decButton | back to summary |
|---|---|
| private ScrollBarSkin. | |
| dragStart | back to summary |
|---|---|
| private Point2D dragStart | |
| incButton | back to summary |
|---|---|
| private ScrollBarSkin. | |
| preDragThumbPos | back to summary |
|---|---|
| private double preDragThumbPos | |
| thumb | back to summary |
|---|---|
| private StackPane thumb | |
| thumbLength | back to summary |
|---|---|
| private double thumbLength | |
| track | back to summary |
|---|---|
| private StackPane track | |
| trackBackground | back to summary |
|---|---|
| private StackPane trackBackground | |
| trackLength | back to summary |
|---|---|
| private double trackLength | |
| trackPos | back to summary |
|---|---|
| private double trackPos | |
| ScrollBarSkin | back to summary |
|---|---|
| public ScrollBarSkin(ScrollBar control) Creates a new ScrollBarSkin instance, installing the necessary child
nodes into the Control
| |
| 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.
| |
| computeMinHeight | back to summary |
|---|---|
| protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the minimum allowable height of the Skin, based on the provided width.
| |
| computeMinWidth | back to summary |
|---|---|
| protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the minimum allowable width of the Skin, based on the provided height.
| |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double height, 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
| |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides javafx. Implements javafx. Doc from javafx. Called when a previously installed skin is about to be removed from its associated control.
This allows the skin to do clean up, like removing listeners and bindings, and undo any changes
to the control's properties.
After this method completes,
Calling
| |
| getBreadth | back to summary |
|---|---|
| pack-priv double getBreadth() | |
| getDecrementButton | back to summary |
|---|---|
| private Node getDecrementButton() | |
| getIncrementButton | back to summary |
|---|---|
| private Node getIncrementButton() | |
| getThumb | back to summary |
|---|---|
| private Node getThumb() | |
| getTrack | back to summary |
|---|---|
| private Node getTrack() | |
| initialize | back to summary |
|---|---|
| private void initialize() Initializes the ScrollBarSkin. Creates the scene and sets up all the bindings for the group. | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren(final double x, final double y, final double w, final double h) Overrides javafx. Doc from javafx. Called during the layout pass of the scenegraph.
| |
| minThumbLength | back to summary |
|---|---|
| pack-priv double minThumbLength() | |
| minTrackLength | back to summary |
|---|---|
| pack-priv double minTrackLength() | |
| positionThumb | back to summary |
|---|---|
| pack-priv void positionThumb() Called when ever either min, max or value changes, so thumb's layoutX, Y is recomputed. | |
| Modifier and Type | Field and Description |
|---|---|
| private Region |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected double | computeMinHeight(double width)
Overrides javafx. Computes the minimum height of this region. |
| protected double | computeMinWidth(double height)
Overrides javafx. Computes the minimum width of this region. |
| protected double | computePrefHeight(double width)
Overrides javafx. Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. |
| protected double | computePrefWidth(double height)
Overrides javafx. Computes the preferred width of this region for the given height. |
| protected void | layoutChildren()
Overrides javafx. Invoked during the layout pass to layout the children in this
|
| arrow | back to summary |
|---|---|
| private Region arrow | |
| EndButton | back to summary |
|---|---|
| private EndButton(String styleClass, String arrowStyleClass) | |
| computeMinHeight | back to summary |
|---|---|
| protected double computeMinHeight(double width) Overrides javafx. Doc from javafx. Computes the minimum height of this region. Returns the sum of the top and bottom insets by default. Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
| |
| computeMinWidth | back to summary |
|---|---|
| protected double computeMinWidth(double height) Overrides javafx. Doc from javafx. Computes the minimum width of this region. Returns the sum of the left and right insets by default. region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.
| |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width) Overrides javafx. Doc from javafx. Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double height) Overrides javafx. Doc from javafx. Computes the preferred width of this region for the given height. Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.
| |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren() Overrides javafx. Doc from javafx. Invoked during the layout pass to layout the children in this
Subclasses should override this function to layout content as needed.
| |