public class SliderSkin
extends <any>
Slider
control.Slider
Modifier and Type | Field and Description |
---|---|
private SliderBehavior |
behavior |
private Point2D |
dragStart |
private double |
preDragThumbPos |
private boolean |
showTickMarks |
(package private) <any> |
stringConverterWrapper |
private StackPane |
thumb |
private double |
thumbHeight |
private double |
thumbLeft |
private double |
thumbTop |
private double |
thumbWidth |
private NumberAxis |
tickLine
Track if slider is vertical/horizontal and cause re layout
|
private StackPane |
track |
private boolean |
trackClicked |
private double |
trackLength |
private double |
trackStart |
private double |
trackToTickGap |
Constructor and Description |
---|
SliderSkin(Slider control)
Creates a new SliderSkin instance, installing the necessary child
nodes into the Control
children list, as
well as the necessary input mappings for handling key, mouse, etc events. |
Modifier and Type | Method and Description |
---|---|
protected double |
computeMaxHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computeMaxWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computeMinHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computeMinWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computePrefHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computePrefWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
void |
dispose() |
private void |
initialize()
*
Private implementation *
*
|
protected void |
layoutChildren(double x,
double y,
double w,
double h) |
(package private) double |
minTrackLength() |
(package private) void |
positionThumb(boolean animate)
Called when ever either min, max or value changes, so thumb's layoutX, Y is recomputed.
|
private void |
setShowTickMarks(boolean ticksVisible,
boolean labelsVisible) |
private NumberAxis tickLine
private double trackToTickGap
private boolean showTickMarks
private double thumbWidth
private double thumbHeight
private double trackStart
private double trackLength
private double thumbTop
private double thumbLeft
private double preDragThumbPos
private Point2D dragStart
private StackPane thumb
private StackPane track
private boolean trackClicked
private final SliderBehavior behavior
<any> stringConverterWrapper
public SliderSkin(Slider control)
children
list, as
well as the necessary input mappings for handling key, mouse, etc events.control
- The control that this skin should be installed onto.public void dispose()
protected void layoutChildren(double x, double y, double w, double h)
protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
private void initialize()
private void setShowTickMarks(boolean ticksVisible, boolean labelsVisible)
void positionThumb(boolean animate)
double minTrackLength()