Class SemiCircleProgressIndicatorSkin
java.lang.Object
javafx.scene.control.SkinBase<SemiCircleProgressIndicator>
com.dlsc.gemsfx.skins.GemsSkinBase<SemiCircleProgressIndicator>
com.dlsc.gemsfx.skins.ArcProgressIndicatorSkin<SemiCircleProgressIndicator>
com.dlsc.gemsfx.skins.SemiCircleProgressIndicatorSkin
- All Implemented Interfaces:
javafx.scene.control.Skin<SemiCircleProgressIndicator>
public class SemiCircleProgressIndicatorSkin
extends ArcProgressIndicatorSkin<SemiCircleProgressIndicator>
Skin for
SemiCircleProgressIndicator.
The skin specializes ArcProgressIndicatorSkin with a half-circle
track, matching progress arc, label placement, and indeterminate animation.
-
Field Summary
Fields inherited from class ArcProgressIndicatorSkin
indeterminateAnimation, progressArc, progressLabel, radiusBinding, rotate, trackArc -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new skin for the given semi-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 centerY, double labelHeight) Computes the label y-coordinate above the arc center.protected doubleReturns the maximum length of the progress arc.protected javafx.beans.binding.DoubleBindingReturns 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.TimelineCreates the indeterminate animation for the semi-circle progress arc.protected voidStops the animation and resets the progress arc start angle.Methods inherited from class ArcProgressIndicatorSkin
computeAcrCenterX, computeLabelWidth, computeLabelX, layoutChildrenMethods 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
-
SemiCircleProgressIndicatorSkin
Creates a new skin for the given semi-circle progress indicator.- Parameters:
control- the semi-circle progress indicator to 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<SemiCircleProgressIndicator>
-
getProgressMaxLength
protected double getProgressMaxLength()Description copied from class:ArcProgressIndicatorSkinReturns the maximum length of the progress arc.- Specified by:
getProgressMaxLengthin classArcProgressIndicatorSkin<SemiCircleProgressIndicator>- Returns:
- the maximum progress arc length
-
stopAnimation
protected void stopAnimation()Stops the animation and resets the progress arc start angle.- Overrides:
stopAnimationin classArcProgressIndicatorSkin<SemiCircleProgressIndicator>
-
computeLabelHeight
protected double computeLabelHeight(double diameter) Description copied from class:ArcProgressIndicatorSkinReturns the height of the label.- Specified by:
computeLabelHeightin classArcProgressIndicatorSkin<SemiCircleProgressIndicator>- Parameters:
diameter- the available diameter inside the progress arc- Returns:
- the label height
-
initIndeterminateAnimation
protected javafx.animation.Timeline initIndeterminateAnimation()Creates the indeterminate animation for the semi-circle progress arc.- Specified by:
initIndeterminateAnimationin classArcProgressIndicatorSkin<SemiCircleProgressIndicator>- 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<SemiCircleProgressIndicator>- 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<SemiCircleProgressIndicator>- 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 centerY, double labelHeight) Computes the label y-coordinate above the arc center.- Specified by:
computeLabelYin classArcProgressIndicatorSkin<SemiCircleProgressIndicator>- Parameters:
centerY- the arc center y-coordinatelabelHeight- the label height- Returns:
- the label y-coordinate
-