Top Fields Constructors Methods
com.dlsc.gemsfx.skins

public abstract Class ArcProgressIndicatorSkin<T extends ArcProgressIndicator>

extends SkinBase<T extends ArcProgressIndicator>
Class Inheritance
Known Direct Subclasses
com.dlsc.gemsfx.skins.CircleProgressIndicatorSkin, com.dlsc.gemsfx.skins.SemiCircleProgressIndicatorSkin
Imports
com.dlsc.gemsfx.ArcProgressIndicator, javafx.animation.Animation, .Timeline, javafx.beans.binding.Bindings, .DoubleBinding, javafx.css.PseudoClass, javafx.scene.control.Label, .SkinBase, javafx.scene.shape.Arc, javafx.scene.transform.Rotate, javafx.util.StringConverter

Field Summary

Modifier and TypeField and Description
protected Timeline
protected final Arc
protected final Label
private static final PseudoClass
protected DoubleBinding
protected final Rotate
protected final Arc

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private boolean
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
getProgressMaxLength()

Returns the maximum length of the progress arc.

protected abstract DoubleBinding
getRadiusBinding(T control)

Returns a binding that calculates the radius of the circle based on the size of the control.

protected void
protected abstract Timeline
initIndeterminateAnimation()

Initializes the animation that is used when the progress is indeterminate.

protected void
layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)

Overrides javafx.scene.control.SkinBase.layoutChildren.

Called during the layout pass of the scenegraph.

private void
private void
private void
protected void
private void
Inherited from javafx.scene.control.SkinBase:
computeBaselineOffsetcomputeMaxHeightcomputeMaxWidthcomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthconsumeMouseEventsdisposeexecuteAccessibleActiongetChildrengetClassCssMetaDatagetCssMetaDatagetNodegetSkinnablelayoutInArealayoutInArealayoutInAreapositionInAreapositionInAreapseudoClassStateChangedqueryAccessibleAttributeregisterChangeListenerregisterInvalidationListenerregisterListChangeListenersnappedBottomInsetsnappedLeftInsetsnappedRightInsetsnappedTopInsetsnapPositionsnapPositionXsnapPositionYsnapSizesnapSizeXsnapSizeYsnapSpacesnapSpaceXsnapSpaceYunregisterChangeListenersunregisterInvalidationListenersunregisterListChangeListeners

Field Detail

indeterminateAnimationback to summary
protected Timeline indeterminateAnimation
progressArcback to summary
protected final Arc progressArc
progressLabelback to summary
protected final Label progressLabel
PSEUDO_CLASS_COMPLETEDback to summary
private static final PseudoClass PSEUDO_CLASS_COMPLETED
radiusBindingback to summary
protected DoubleBinding radiusBinding
rotateback to summary
protected final Rotate rotate
trackArcback to summary
protected final Arc trackArc

Constructor Detail

ArcProgressIndicatorSkinback to summary
public ArcProgressIndicatorSkin(T control)

Method Detail

animationIsRunningback to summary
private boolean animationIsRunning()
computeAcrCenterXback to summary
protected double computeAcrCenterX(double contentX, double contentWidth)
computeArcCenterYback to summary
protected abstract double computeArcCenterY(double contentY, double contentHeight)

Returns the y-coordinate of the center of the progress arc / track arc.

computeLabelHeightback to summary
protected abstract double computeLabelHeight(double diameter)

Returns the height of the label.

computeLabelWidthback to summary
protected double computeLabelWidth(double diameter)
computeLabelXback to summary
protected double computeLabelX(double arcCenterX, double labelWidth)
computeLabelYback to summary
protected abstract double computeLabelY(double arcCenterY, double labelHeight)

Returns the y-coordinate of the label.

getProgressMaxLengthback to summary
protected abstract double getProgressMaxLength()

Returns the maximum length of the progress arc.

getRadiusBindingback to summary
protected abstract DoubleBinding getRadiusBinding(T control)

Returns a binding that calculates the radius of the circle based on the size of the control.

initComponentsback to summary
protected void initComponents()
initIndeterminateAnimationback to summary
protected abstract Timeline initIndeterminateAnimation()

Initializes the animation that is used when the progress is indeterminate.

layoutChildrenback to summary
protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight)

Overrides javafx.scene.control.SkinBase.layoutChildren.

Doc from javafx.scene.control.SkinBase.layoutChildren.

Called during the layout pass of the scenegraph.

Annotations
@Override
pauseAnimationback to summary
private void pauseAnimation()
playAnimationback to summary
private void playAnimation()
registerListenerback to summary
private void registerListener()
stopAnimationback to summary
protected void stopAnimation()
updateProgressback to summary
private void updateProgress()