java.lang.Object
javafx.scene.control.SkinBase<MFXProgressBar>
io.github.palexdev.materialfx.skins.MFXProgressBarSkin
- All Implemented Interfaces:
Skin<MFXProgressBar>
This is the implementation of the
Skin associated with every MFXProgressBar.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RectanglebuildRectangle(String styleClass) Responsible for building the track and the bars for the progress bar.protected doublecomputeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) voiddispose()protected voidIf the indeterminate animation is already playing returns.protected voidResponsible for clearing the indeterminate animation (stop, clear children and set to null), and resetting the bars layout, scale and width properties.protected voidResponsible for updating the progress bar state.protected voidResponsible for calculating the bar width according to the current progress (so when the progress bar is not indeterminate).Methods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMinHeight, computeMinWidth, consumeMouseEvents, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutChildren, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListeners
-
Constructor Details
-
MFXProgressBarSkin
-
-
Method Details
-
updateBars
protected void updateBars()Responsible for updating the progress bar state. If it is indeterminate callsplayIndeterminateAnimation(), otherwise callsresetBars()andupdateProgress(). -
resetBars
protected void resetBars()Responsible for clearing the indeterminate animation (stop, clear children and set to null), and resetting the bars layout, scale and width properties. -
updateProgress
protected void updateProgress()Responsible for calculating the bar width according to the current progress (so when the progress bar is not indeterminate). -
playIndeterminateAnimation
protected void playIndeterminateAnimation()If the indeterminate animation is already playing returns. Responsible for building the indeterminate animation. -
buildRectangle
Responsible for building the track and the bars for the progress bar. -
computePrefWidth
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computePrefWidthin classSkinBase<MFXProgressBar>
-
computePrefHeight
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computePrefHeightin classSkinBase<MFXProgressBar>
-
computeMaxHeight
protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMaxHeightin classSkinBase<MFXProgressBar>
-
computeMaxWidth
protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMaxWidthin classSkinBase<MFXProgressBar>
-
dispose
public void dispose()- Specified by:
disposein interfaceSkin<MFXProgressBar>- Overrides:
disposein classSkinBase<MFXProgressBar>
-