Class ArcProgressIndicatorSkin<T extends ArcProgressIndicator>
java.lang.Object
javafx.scene.control.SkinBase<T>
com.dlsc.gemsfx.skins.GemsSkinBase<T>
com.dlsc.gemsfx.skins.ArcProgressIndicatorSkin<T>
- All Implemented Interfaces:
javafx.scene.control.Skin<T>
- Direct Known Subclasses:
CircleProgressIndicatorSkin, SemiCircleProgressIndicatorSkin
public abstract class ArcProgressIndicatorSkin<T extends ArcProgressIndicator>
extends GemsSkinBase<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected javafx.animation.Timelineprotected final javafx.scene.shape.Arcprotected final javafx.scene.control.Labelprotected javafx.beans.binding.DoubleBindingprotected final javafx.scene.transform.Rotateprotected final javafx.scene.shape.Arc -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecomputeAcrCenterX(double contentX, double contentWidth) protected abstract doublecomputeArcCenterY(double contentY, double contentHeight) Returns the y-coordinate of the center of the progress arc / track arc.protected abstract doublecomputeLabelHeight(double diameter) Returns the height of the label.protected doublecomputeLabelWidth(double diameter) protected doublecomputeLabelX(double arcCenterX, double labelWidth) protected abstract doublecomputeLabelY(double arcCenterY, double labelHeight) Returns the y-coordinate of the label.protected abstract doubleReturns the maximum length of the progress arc.protected abstract javafx.beans.binding.DoubleBindinggetRadiusBinding(T control) Returns a binding that calculates the radius of the circle based on the size of the control.protected voidprotected abstract javafx.animation.TimelineInitializes the animation that is used when the progress is indeterminate.protected voidlayoutChildren(double contentX, double contentY, double contentWidth, double contentHeight) protected voidMethods inherited from class GemsSkinBase
dispose, register, 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, unregisterListChangeListenersMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javafx.scene.control.Skin
install
-
Field Details
-
progressLabel
protected final javafx.scene.control.Label progressLabel -
trackArc
protected final javafx.scene.shape.Arc trackArc -
progressArc
protected final javafx.scene.shape.Arc progressArc -
rotate
protected final javafx.scene.transform.Rotate rotate -
radiusBinding
protected javafx.beans.binding.DoubleBinding radiusBinding -
indeterminateAnimation
protected javafx.animation.Timeline indeterminateAnimation
-
-
Constructor Details
-
ArcProgressIndicatorSkin
-
-
Method Details
-
initComponents
protected void initComponents() -
stopAnimation
protected void stopAnimation() -
layoutChildren
protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight) - Overrides:
layoutChildrenin classjavafx.scene.control.SkinBase<T extends ArcProgressIndicator>
-
computeLabelWidth
protected double computeLabelWidth(double diameter) -
computeAcrCenterX
protected double computeAcrCenterX(double contentX, double contentWidth) -
computeLabelX
protected double computeLabelX(double arcCenterX, double labelWidth) -
computeLabelHeight
protected abstract double computeLabelHeight(double diameter) Returns the height of the label. -
computeArcCenterY
protected abstract double computeArcCenterY(double contentY, double contentHeight) Returns the y-coordinate of the center of the progress arc / track arc. -
computeLabelY
protected abstract double computeLabelY(double arcCenterY, double labelHeight) Returns the y-coordinate of the label. -
initIndeterminateAnimation
protected abstract javafx.animation.Timeline initIndeterminateAnimation()Initializes the animation that is used when the progress is indeterminate. -
getRadiusBinding
Returns a binding that calculates the radius of the circle based on the size of the control. -
getProgressMaxLength
protected abstract double getProgressMaxLength()Returns the maximum length of the progress arc.
-