Top Description Inners Fields Constructors Methods
javafx.scene.control.skin

public Class ProgressBarSkin

extends ProgressIndicatorSkin
Class Inheritance
Imports
com.sun.javafx.scene.NodeHelper, java.lang.ref.WeakReference, java.util.ArrayList, .Collections, .List, javafx.animation.Timeline, .Transition, javafx.beans.binding.When, javafx.beans.property.BooleanProperty, .DoubleProperty, javafx.css.CssMetaData, .StyleableBooleanProperty, .StyleableDoubleProperty, .StyleableProperty, .Styleable, javafx.scene.Node, javafx.scene.control.Control, .ProgressBar, .ProgressIndicator, .SkinBase, javafx.scene.layout.Background, .BackgroundFill, .Region, .StackPane, javafx.scene.paint.Color, javafx.util.Duration, javafx.css.converter.BooleanConverter, .SizeConverter

Default skin implementation for the ProgressBar control.
Since
9
See Also
ProgressBar

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private StackPane
private double
private Region
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
pack-priv boolean
Inherited from javafx.scene.control.skin.ProgressIndicatorSkin:
CLIPPED_DELAYindeterminateTransitionUNCLIPPED_DELAY

Constructor Summary

AccessConstructor and Description
public
ProgressBarSkin(ProgressBar
The control that this skin should be installed onto.
control
)

Creates a new ProgressBarSkin instance, installing the necessary child nodes into the Control children list.

Method Summary

Modifier and TypeMethod and Description
public double
computeBaselineOffset(double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computeBaselineOffset.

Calculates the baseline offset based on the first managed child.

protected double
computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.skin.ProgressIndicatorSkin.computeMaxHeight.

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.scene.control.skin.ProgressIndicatorSkin.computeMaxWidth.

Computes the maximum allowable width of the Skin, based on the provided height.

protected double
computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.skin.ProgressIndicatorSkin.computePrefHeight.

Calculates the preferred height of this SkinBase.

protected double
computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.skin.ProgressIndicatorSkin.computePrefWidth.

Calculates the preferred width of this SkinBase.

pack-priv void
public static List<CssMetaData<? extends Styleable, ?>>

Returns:

the CssMetaData associated with this class, which may include the CssMetaData of its superclasses
getClassCssMetaData
()

Hides javafx.scene.control.skin.ProgressIndicatorSkin.getClassCssMetaData.

Returns the CssMetaData associated with this class, which may include the CssMetaData of its superclasses.

public List<CssMetaData<? extends Styleable, ?>>
getCssMetaData()

Overrides javafx.scene.control.skin.ProgressIndicatorSkin.getCssMetaData.

This method should delegate to Node#getClassCssMetaData() so that a Node's CssMetaData can be accessed without the need for reflection.

private double
private Boolean
private Boolean
private Double
private DoubleProperty
private BooleanProperty
private BooleanProperty
private DoubleProperty
pack-priv void
protected void
layoutChildren(final double x, final double y, final double w, final double h)

Overrides javafx.scene.control.skin.ProgressIndicatorSkin.layoutChildren.

Called during the layout pass of the scenegraph.

pack-priv void
Inherited from javafx.scene.control.skin.ProgressIndicatorSkin:
computeMinHeightcomputeMinWidthdisposegetProgressColorpauseTimelineupdateAnimation

Field Detail

barback to summary
private StackPane bar
barWidthback to summary
private double barWidth
clipRegionback to summary
private Region clipRegion
indeterminateBarAnimationTimeback to summary
private DoubleProperty indeterminateBarAnimationTime

How many seconds it should take for the indeterminate bar to go from one edge to the other

indeterminateBarEscapeback to summary
private BooleanProperty indeterminateBarEscape

If the progress bar should escape the ends of the progress bar region in indeterminate state

indeterminateBarFlipback to summary
private BooleanProperty indeterminateBarFlip

If the progress bar should flip when it gets to the ends in indeterminate state

indeterminateBarLengthback to summary
private DoubleProperty indeterminateBarLength

The length of the bouncing progress bar in indeterminate state

trackback to summary
private StackPane track
wasIndeterminateback to summary
pack-priv boolean wasIndeterminate

Constructor Detail

ProgressBarSkinback to summary
public ProgressBarSkin(ProgressBar control)

Creates a new ProgressBarSkin instance, installing the necessary child nodes into the Control children list.

Parameters
control:ProgressBar

The control that this skin should be installed onto.

Method Detail

computeBaselineOffsetback to summary
public double computeBaselineOffset(double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computeBaselineOffset.

Doc from javafx.scene.control.SkinBase.computeBaselineOffset.

Calculates the baseline offset based on the first managed child. If there is no such child, returns Node#getBaselineOffset().

Annotations
@Override
computeMaxHeightback to summary
protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.skin.ProgressIndicatorSkin.computeMaxHeight.

Doc from javafx.scene.control.skin.ProgressIndicatorSkin.computeMaxHeight.

Computes the maximum allowable height of the Skin, based on the provided width.

Annotations
@Override
computeMaxWidthback to summary
protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.skin.ProgressIndicatorSkin.computeMaxWidth.

Doc from javafx.scene.control.skin.ProgressIndicatorSkin.computeMaxWidth.

Computes the maximum allowable width of the Skin, based on the provided height.

Annotations
@Override
computePrefHeightback to summary
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.skin.ProgressIndicatorSkin.computePrefHeight.

Doc from javafx.scene.control.skin.ProgressIndicatorSkin.computePrefHeight.

Calculates the preferred height of this SkinBase. The default implementation calculates this height as the height of the area occupied by its managed children when they are positioned at their current positions at their preferred heights.

Annotations
@Override
computePrefWidthback to summary
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.skin.ProgressIndicatorSkin.computePrefWidth.

Doc from javafx.scene.control.skin.ProgressIndicatorSkin.computePrefWidth.

Calculates the preferred width of this SkinBase. The default implementation calculates this width as the width of the area occupied by its managed children when they are positioned at their current positions at their preferred widths.

Annotations
@Override
createIndeterminateTimelineback to summary
pack-priv void createIndeterminateTimeline()

Overrides javafx.scene.control.skin.ProgressIndicatorSkin.createIndeterminateTimeline.

Annotations
@Override
getClassCssMetaDataback to summary
public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData()

Hides javafx.scene.control.skin.ProgressIndicatorSkin.getClassCssMetaData.

Returns the CssMetaData associated with this class, which may include the CssMetaData of its superclasses.

Returns:List<CssMetaData<? extends Styleable, ?>>

the CssMetaData associated with this class, which may include the CssMetaData of its superclasses

getCssMetaDataback to summary
public List<CssMetaData<? extends Styleable, ?>> getCssMetaData()

Overrides javafx.scene.control.skin.ProgressIndicatorSkin.getCssMetaData.

Doc from javafx.scene.control.skin.ProgressIndicatorSkin.getCssMetaData.

This method should delegate to Node#getClassCssMetaData() so that a Node's CssMetaData can be accessed without the need for reflection.

Annotations
@Override
getIndeterminateBarAnimationTimeback to summary
private double getIndeterminateBarAnimationTime()
getIndeterminateBarEscapeback to summary
private Boolean getIndeterminateBarEscape()
getIndeterminateBarFlipback to summary
private Boolean getIndeterminateBarFlip()
getIndeterminateBarLengthback to summary
private Double getIndeterminateBarLength()
indeterminateBarAnimationTimePropertyback to summary
private DoubleProperty indeterminateBarAnimationTimeProperty()
indeterminateBarEscapePropertyback to summary
private BooleanProperty indeterminateBarEscapeProperty()
indeterminateBarFlipPropertyback to summary
private BooleanProperty indeterminateBarFlipProperty()
indeterminateBarLengthPropertyback to summary
private DoubleProperty indeterminateBarLengthProperty()
initializeback to summary
pack-priv void initialize()

Overrides javafx.scene.control.skin.ProgressIndicatorSkin.initialize.

Annotations
@Override
layoutChildrenback to summary
protected void layoutChildren(final double x, final double y, final double w, final double h)

Overrides javafx.scene.control.skin.ProgressIndicatorSkin.layoutChildren.

Doc from javafx.scene.control.skin.ProgressIndicatorSkin.layoutChildren.

Called during the layout pass of the scenegraph.

Annotations
@Override
updateProgressback to summary
pack-priv void updateProgress()

Overrides javafx.scene.control.skin.ProgressIndicatorSkin.updateProgress.

Annotations
@Override
javafx.scene.control.skin back to summary

private Class ProgressBarSkin.IndeterminateTransition

extends Transition
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final double
private final boolean
private final WeakReference<ProgressBarSkin>
private final double

Constructor Summary

AccessConstructor and Description
public
IndeterminateTransition(double startX, double endX, ProgressBarSkin progressBarSkin)

Method Summary

Modifier and TypeMethod and Description
protected void
interpolate(double frac)

Implements abstract javafx.animation.Transition.interpolate.

The method interpolate() has to be provided by implementations of Transition.

Inherited from javafx.animation.Transition:
getCachedInterpolatorgetInterpolatorgetParentTargetNodeinterpolatorPropertysetInterpolator

Field Detail

endXback to summary
private final double endX
flipback to summary
private final boolean flip
skinback to summary
private final WeakReference<ProgressBarSkin> skin
startXback to summary
private final double startX

Constructor Detail

IndeterminateTransitionback to summary
public IndeterminateTransition(double startX, double endX, ProgressBarSkin progressBarSkin)

Method Detail

interpolateback to summary
protected void interpolate(double frac)

Implements abstract javafx.animation.Transition.interpolate.

Doc from javafx.animation.Transition.interpolate.

The method interpolate() has to be provided by implementations of Transition. While a Transition is running, this method is called in every frame. The parameter defines the current position with the animation. At the start, the fraction will be 0.0 and at the end it will be 1.0. How the parameter increases, depends on the interpolator, e.g. if the interpolator is Interpolator#LINEAR, the fraction will increase linear. This method must not be called by the user directly.

Annotations
@Override
javafx.scene.control.skin back to summary

private Class ProgressBarSkin.StyleableProperties

extends Object
Class Inheritance
  • java.lang.Object
  • javafx.scene.control.skin.ProgressBarSkin.StyleableProperties

Field Summary

Modifier and TypeField and Description
private static final CssMetaData<ProgressBar, Number>
private static final CssMetaData<ProgressBar, Boolean>
private static final CssMetaData<ProgressBar, Boolean>
private static final CssMetaData<ProgressBar, Number>
private static final List<CssMetaData<? extends Styleable, ?>>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INDETERMINATE_BAR_ANIMATION_TIMEback to summary
private static final CssMetaData<ProgressBar, Number> INDETERMINATE_BAR_ANIMATION_TIME
INDETERMINATE_BAR_ESCAPEback to summary
private static final CssMetaData<ProgressBar, Boolean> INDETERMINATE_BAR_ESCAPE
INDETERMINATE_BAR_FLIPback to summary
private static final CssMetaData<ProgressBar, Boolean> INDETERMINATE_BAR_FLIP
INDETERMINATE_BAR_LENGTHback to summary
private static final CssMetaData<ProgressBar, Number> INDETERMINATE_BAR_LENGTH
STYLEABLESback to summary
private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES

Constructor Detail

StyleablePropertiesback to summary
private StyleableProperties()