public class ProgressBarSkin extends ProgressIndicatorSkin
ProgressBar
control.ProgressBar
Type | Property and Description |
---|---|
private DoubleProperty |
indeterminateBarAnimationTime
How many seconds it should take for the indeterminate bar to go from
one edge to the other
|
private BooleanProperty |
indeterminateBarEscape
If the progress bar should escape the ends of the progress bar region in indeterminate state
|
private BooleanProperty |
indeterminateBarFlip
If the progress bar should flip when it gets to the ends in indeterminate state
|
private DoubleProperty |
indeterminateBarLength
The length of the bouncing progress bar in indeterminate state
|
Modifier and Type | Class and Description |
---|---|
private static class |
ProgressBarSkin.IndeterminateTransition
*
Support classes *
*
|
private static class |
ProgressBarSkin.StyleableProperties
*
Stylesheet Handling *
*
|
Modifier and Type | Field and Description |
---|---|
private StackPane |
bar
*
Private fields *
*
|
private double |
barWidth |
private Region |
clipRegion |
private DoubleProperty |
indeterminateBarAnimationTime
How many seconds it should take for the indeterminate bar to go from
one edge to the other
|
private BooleanProperty |
indeterminateBarEscape
If the progress bar should escape the ends of the progress bar region in indeterminate state
|
private BooleanProperty |
indeterminateBarFlip
If the progress bar should flip when it gets to the ends in indeterminate state
|
private DoubleProperty |
indeterminateBarLength
The length of the bouncing progress bar in indeterminate state
|
private StackPane |
track |
(package private) boolean |
wasIndeterminate |
CLIPPED_DELAY, indeterminateTransition, UNCLIPPED_DELAY
Constructor and Description |
---|
ProgressBarSkin(ProgressBar control)
Creates a new ProgressBarSkin instance, installing the necessary child
nodes into the Control
children list. |
Modifier and Type | Method and Description |
---|---|
double |
computeBaselineOffset(double topInset,
double rightInset,
double bottomInset,
double leftInset) |
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 |
computePrefHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computePrefWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
(package private) void |
createIndeterminateTimeline() |
static java.util.List<<any>> |
getClassCssMetaData()
Returns the CssMetaData associated with this class, which may include the
CssMetaData of its superclasses.
|
java.util.List<<any>> |
getCssMetaData() |
private double |
getIndeterminateBarAnimationTime() |
private java.lang.Boolean |
getIndeterminateBarEscape() |
private java.lang.Boolean |
getIndeterminateBarFlip() |
private java.lang.Double |
getIndeterminateBarLength() |
private DoubleProperty |
indeterminateBarAnimationTimeProperty()
How many seconds it should take for the indeterminate bar to go from
one edge to the other
|
private BooleanProperty |
indeterminateBarEscapeProperty()
If the progress bar should escape the ends of the progress bar region in indeterminate state
|
private BooleanProperty |
indeterminateBarFlipProperty()
If the progress bar should flip when it gets to the ends in indeterminate state
|
private DoubleProperty |
indeterminateBarLengthProperty()
The length of the bouncing progress bar in indeterminate state
|
(package private) void |
initialize()
*
Private implementation *
*
|
protected void |
layoutChildren(double x,
double y,
double w,
double h) |
(package private) void |
updateProgress() |
computeMinHeight, computeMinWidth, dispose, getProgressColor, pauseTimeline, updateAnimation
private DoubleProperty indeterminateBarLengthProperty
private BooleanProperty indeterminateBarEscapeProperty
private BooleanProperty indeterminateBarFlipProperty
private DoubleProperty indeterminateBarAnimationTimeProperty
private StackPane bar
private StackPane track
private Region clipRegion
private double barWidth
private DoubleProperty indeterminateBarLength
private BooleanProperty indeterminateBarEscape
private BooleanProperty indeterminateBarFlip
private DoubleProperty indeterminateBarAnimationTime
boolean wasIndeterminate
public ProgressBarSkin(ProgressBar control)
children
list.control
- The control that this skin should be installed onto.private DoubleProperty indeterminateBarLengthProperty()
private java.lang.Double getIndeterminateBarLength()
private BooleanProperty indeterminateBarEscapeProperty()
private java.lang.Boolean getIndeterminateBarEscape()
private BooleanProperty indeterminateBarFlipProperty()
private java.lang.Boolean getIndeterminateBarFlip()
private DoubleProperty indeterminateBarAnimationTimeProperty()
private double getIndeterminateBarAnimationTime()
public double computeBaselineOffset(double topInset, double rightInset, double bottomInset, double leftInset)
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
computePrefWidth
in class ProgressIndicatorSkin
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
computePrefHeight
in class ProgressIndicatorSkin
protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
computeMaxWidth
in class ProgressIndicatorSkin
protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
computeMaxHeight
in class ProgressIndicatorSkin
protected void layoutChildren(double x, double y, double w, double h)
layoutChildren
in class ProgressIndicatorSkin
void initialize()
initialize
in class ProgressIndicatorSkin
void createIndeterminateTimeline()
createIndeterminateTimeline
in class ProgressIndicatorSkin
void updateProgress()
updateProgress
in class ProgressIndicatorSkin
public static java.util.List<<any>> getClassCssMetaData()
public java.util.List<<any>> getCssMetaData()
getCssMetaData
in class ProgressIndicatorSkin