Slider control.
Slider
| Modifier and Type | Field and Description |
|---|---|
| private final SliderBehavior | |
| private Point2D | |
| private double | |
| private boolean | |
| pack-priv StringConverter | |
| private StackPane | |
| private double | |
| private double | |
| private double | |
| private double | |
| private NumberAxis | tickLine
Track if slider is vertical/horizontal and cause re layout |
| private boolean | |
| private StackPane | |
| private boolean | |
| private double | |
| private double | |
| private double |
| Access | Constructor and Description |
|---|---|
| public | SliderSkin(Slider
The control that this skin should be installed onto. control)Creates a new SliderSkin instance, installing the necessary child
nodes into the Control |
| Modifier and Type | Method and Description |
|---|---|
| protected double | computeMaxHeight(double
The width of the Skin, in case this value might dictate
the maximum height. width, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Computes the maximum allowable height of the Skin, based on the provided width. |
| protected double | computeMaxWidth(double
The height of the Skin, in case this value might dictate
the maximum width. height, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Computes the maximum allowable width of the Skin, based on the provided height. |
| protected double | computeMinHeight(double
The width of the Skin, in case this value might dictate
the minimum height. width, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Computes the minimum allowable height of the Skin, based on the provided width. |
| protected double | computeMinWidth(double
The height of the Skin, in case this value might dictate
the minimum width. height, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Computes the minimum allowable width of the Skin, based on the provided height. |
| protected double | computePrefHeight(double
the width that should be used if preferred height depends on it width, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Calculates the preferred height of this |
| protected double | computePrefWidth(double
the height that should be used if preferred width depends on it height, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset 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. |
| private void | |
| protected void | layoutChildren(final double
the x position x, final double the y position y, final double the width w, final double the height h)Overrides javafx. Called during the layout pass of the scenegraph. |
| pack-priv double | |
| pack-priv void | positionThumb(final boolean animate)
Called when ever either min, max or value changes, so thumb's layoutX, Y is recomputed. |
| private void |
| behavior | back to summary |
|---|---|
| private final SliderBehavior behavior | |
| dragStart | back to summary |
|---|---|
| private Point2D dragStart | |
| preDragThumbPos | back to summary |
|---|---|
| private double preDragThumbPos | |
| showTickMarks | back to summary |
|---|---|
| private boolean showTickMarks | |
| stringConverterWrapper | back to summary |
|---|---|
| pack-priv StringConverter<Number> stringConverterWrapper | |
| thumb | back to summary |
|---|---|
| private StackPane thumb | |
| thumbHeight | back to summary |
|---|---|
| private double thumbHeight | |
| thumbLeft | back to summary |
|---|---|
| private double thumbLeft | |
| thumbTop | back to summary |
|---|---|
| private double thumbTop | |
| thumbWidth | back to summary |
|---|---|
| private double thumbWidth | |
| tickLine | back to summary |
|---|---|
| private NumberAxis tickLine Track if slider is vertical/horizontal and cause re layout | |
| tooltipConsumeAutoHidingEvents | back to summary |
|---|---|
| private boolean tooltipConsumeAutoHidingEvents | |
| track | back to summary |
|---|---|
| private StackPane track | |
| trackClicked | back to summary |
|---|---|
| private boolean trackClicked | |
| trackLength | back to summary |
|---|---|
| private double trackLength | |
| trackStart | back to summary |
|---|---|
| private double trackStart | |
| trackToTickGap | back to summary |
|---|---|
| private double trackToTickGap | |
| SliderSkin | back to summary |
|---|---|
| public SliderSkin(Slider control) Creates a new SliderSkin 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 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
| |
| 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
| |
| initialize | back to summary |
|---|---|
| private void initialize() | |
| 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.
| |
| minTrackLength | back to summary |
|---|---|
| pack-priv double minTrackLength() | |
| positionThumb | back to summary |
|---|---|
| pack-priv void positionThumb(final boolean animate) Called when ever either min, max or value changes, so thumb's layoutX, Y is recomputed. | |
| setShowTickMarks | back to summary |
|---|---|
| private void setShowTickMarks(boolean ticksVisible, boolean labelsVisible) | |