public class ScrollBarSkin
extends <any>
ScrollBar
control.ScrollBar
Modifier and Type | Class and Description |
---|---|
private static class |
ScrollBarSkin.EndButton
*
Support classes *
*
|
Modifier and Type | Field and Description |
---|---|
private ScrollBarBehavior |
behavior
*
Private fields *
*
|
private ScrollBarSkin.EndButton |
decButton |
private Point2D |
dragStart |
private ScrollBarSkin.EndButton |
incButton |
private double |
preDragThumbPos |
private StackPane |
thumb |
private double |
thumbLength |
private StackPane |
track |
private StackPane |
trackBackground |
private double |
trackLength |
private double |
trackPos |
Constructor and Description |
---|
ScrollBarSkin(ScrollBar control)
Creates a new ScrollBarSkin 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 height,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computePrefWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
void |
dispose() |
(package private) double |
getBreadth() |
private Node |
getDecrementButton() |
private Node |
getIncrementButton() |
private Node |
getThumb() |
private Node |
getTrack() |
private void |
initialize()
Initializes the ScrollBarSkin.
|
protected void |
layoutChildren(double x,
double y,
double w,
double h) |
(package private) double |
minThumbLength() |
(package private) double |
minTrackLength() |
(package private) void |
positionThumb()
Called when ever either min, max or value changes, so thumb's layoutX, Y is recomputed.
|
private final ScrollBarBehavior behavior
private StackPane thumb
private StackPane trackBackground
private StackPane track
private ScrollBarSkin.EndButton incButton
private ScrollBarSkin.EndButton decButton
private double trackLength
private double thumbLength
private double preDragThumbPos
private Point2D dragStart
private double trackPos
public ScrollBarSkin(ScrollBar 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 height, 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()
double getBreadth()
double minThumbLength()
double minTrackLength()
void positionThumb()
private Node getThumb()
private Node getTrack()
private Node getIncrementButton()
private Node getDecrementButton()