Class CircleProgressIndicatorSkin
java.lang.Object
javafx.scene.control.SkinBase<CircleProgressIndicator>
com.dlsc.gemsfx.skins.GemsSkinBase<CircleProgressIndicator>
com.dlsc.gemsfx.skins.ArcProgressIndicatorSkin<CircleProgressIndicator>
com.dlsc.gemsfx.skins.CircleProgressIndicatorSkin
- All Implemented Interfaces:
javafx.scene.control.Skin<CircleProgressIndicator>
Skin for the
CircleProgressIndicator control.
The skin renders a complete circular track and progress arc with a centered label or graphic and supplies the circular indeterminate animation.
-
Field Summary
Fields inherited from class ArcProgressIndicatorSkin
indeterminateAnimation, progressArc, progressLabel, radiusBinding, rotate, trackArc -
Constructor Summary
ConstructorsConstructorDescriptionCreates a skin for the given circle progress indicator. -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecomputeArcCenterY(double contentY, double contentHeight) Returns the y-coordinate of the center of the progress arc and track arc.protected doublecomputeLabelHeight(double diameter) Returns the height of the label.protected doublecomputeLabelY(double arcCenterY, double labelHeight) Returns the y-coordinate of the label.protected doubleReturns the maximum length of the progress arc.protected javafx.beans.binding.DoubleBindinggetRadiusBinding(CircleProgressIndicator control) Returns a binding that calculates the radius of the circle based on the size of the control.protected voidInitializes the arcs, label, and child nodes used by this skin.protected javafx.animation.TimelineInitializes the animation that is used when the progress is indeterminate.Methods inherited from class ArcProgressIndicatorSkin
computeAcrCenterX, computeLabelWidth, computeLabelX, layoutChildren, stopAnimationMethods inherited from class GemsSkinBase
dispose, register, register, register, register, registerFilter, registerHandlerMethods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, 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
-
CircleProgressIndicatorSkin
Creates a skin for the given circle progress indicator.- Parameters:
control- the circle progress indicator rendered by this skin
-
-
Method Details
-
initComponents
protected void initComponents()Description copied from class:ArcProgressIndicatorSkinInitializes the arcs, label, and child nodes used by this skin.- Overrides:
initComponentsin classArcProgressIndicatorSkin<CircleProgressIndicator>
-
getProgressMaxLength
protected double getProgressMaxLength()Description copied from class:ArcProgressIndicatorSkinReturns the maximum length of the progress arc.- Specified by:
getProgressMaxLengthin classArcProgressIndicatorSkin<CircleProgressIndicator>- Returns:
- the maximum progress arc length
-
computeLabelHeight
protected double computeLabelHeight(double diameter) Description copied from class:ArcProgressIndicatorSkinReturns the height of the label.- Specified by:
computeLabelHeightin classArcProgressIndicatorSkin<CircleProgressIndicator>- Parameters:
diameter- the available diameter inside the progress arc- Returns:
- the label height
-
initIndeterminateAnimation
protected javafx.animation.Timeline initIndeterminateAnimation()Description copied from class:ArcProgressIndicatorSkinInitializes the animation that is used when the progress is indeterminate.- Specified by:
initIndeterminateAnimationin classArcProgressIndicatorSkin<CircleProgressIndicator>- Returns:
- the indeterminate animation timeline
-
getRadiusBinding
Description copied from class:ArcProgressIndicatorSkinReturns a binding that calculates the radius of the circle based on the size of the control.- Specified by:
getRadiusBindingin classArcProgressIndicatorSkin<CircleProgressIndicator>- Parameters:
control- the progress indicator rendered by this skin- Returns:
- the radius binding
-
computeArcCenterY
protected double computeArcCenterY(double contentY, double contentHeight) Description copied from class:ArcProgressIndicatorSkinReturns the y-coordinate of the center of the progress arc and track arc.- Specified by:
computeArcCenterYin classArcProgressIndicatorSkin<CircleProgressIndicator>- Parameters:
contentY- the y-coordinate of the content areacontentHeight- the height of the content area- Returns:
- the y-coordinate of the arc center
-
computeLabelY
protected double computeLabelY(double arcCenterY, double labelHeight) Description copied from class:ArcProgressIndicatorSkinReturns the y-coordinate of the label.- Specified by:
computeLabelYin classArcProgressIndicatorSkin<CircleProgressIndicator>- Parameters:
arcCenterY- the y-coordinate of the arc centerlabelHeight- the computed label height- Returns:
- the y-coordinate of the label
-