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

    Fields
    Modifier and Type
    Field
    Description
    protected javafx.animation.Timeline
     
    protected final javafx.scene.shape.Arc
     
    protected final javafx.scene.control.Label
     
    protected javafx.beans.binding.DoubleBinding
     
    protected final javafx.scene.transform.Rotate
     
    protected final javafx.scene.shape.Arc
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected double
    computeAcrCenterX(double contentX, double contentWidth)
     
    protected abstract double
    computeArcCenterY(double contentY, double contentHeight)
    Returns the y-coordinate of the center of the progress arc / track arc.
    protected abstract double
    computeLabelHeight(double diameter)
    Returns the height of the label.
    protected double
    computeLabelWidth(double diameter)
     
    protected double
    computeLabelX(double arcCenterX, double labelWidth)
     
    protected abstract double
    computeLabelY(double arcCenterY, double labelHeight)
    Returns the y-coordinate of the label.
    protected abstract double
    Returns the maximum length of the progress arc.
    protected abstract javafx.beans.binding.DoubleBinding
    Returns a binding that calculates the radius of the circle based on the size of the control.
    protected void
     
    protected abstract javafx.animation.Timeline
    Initializes the animation that is used when the progress is indeterminate.
    protected void
    layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)
     
    protected void
     

    Methods 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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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

      public ArcProgressIndicatorSkin(T control)
  • Method Details

    • initComponents

      protected void initComponents()
    • stopAnimation

      protected void stopAnimation()
    • layoutChildren

      protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)
      Overrides:
      layoutChildren in class javafx.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

      protected abstract javafx.beans.binding.DoubleBinding getRadiusBinding(T control)
      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.