Module MaterialFX

Class MFXProgressSpinner

All Implemented Interfaces:
Styleable, EventTarget, Skinnable

public class MFXProgressSpinner extends ProgressIndicator
Implementation of a spinning ProgressIndicator.

Extends ProgressIndicator.

MFXProgressSpinner introduces three new css pseudo classes:

- ":range1", activated when the spinner value is contained in any of the ranges specified in here getRanges1()

- ":range2", activated when the spinner value is contained in any of the ranges specified in here getRanges2()

- ":range3", activated when the spinner value is contained in any of the ranges specified in here getRanges3()

I know this may seem a strange approach, but it is much more flexible and allows for a lot more customization.

  • Property Details

  • Field Details

    • RANGE1_PSEUDO_CLASS

      protected final PseudoClass RANGE1_PSEUDO_CLASS
    • RANGE2_PSEUDO_CLASS

      protected final PseudoClass RANGE2_PSEUDO_CLASS
    • RANGE3_PSEUDO_CLASS

      protected final PseudoClass RANGE3_PSEUDO_CLASS
  • Constructor Details

    • MFXProgressSpinner

      public MFXProgressSpinner()
    • MFXProgressSpinner

      public MFXProgressSpinner(double progress)
  • Method Details

    • getRanges1

      public ObservableList<NumberRange<Double>> getRanges1()
      Returns the first list of ranges.
    • getRanges2

      public ObservableList<NumberRange<Double>> getRanges2()
      Returns the second list of ranges.
    • getRanges3

      public ObservableList<NumberRange<Double>> getRanges3()
      Returns the third list of ranges.
    • getColor1

      public Color getColor1()
      Gets the value of the property color1.
      Property description:
      Specifies the first color of the spinner arc.
    • color1Property

      public StyleableObjectProperty<Color> color1Property()
      Specifies the first color of the spinner arc.
      See Also:
    • setColor1

      public void setColor1(Color color1)
      Sets the value of the property color1.
      Property description:
      Specifies the first color of the spinner arc.
    • getColor2

      public Color getColor2()
      Gets the value of the property color2.
      Property description:
      Specifies the second color of the spinner arc.
    • color2Property

      public StyleableObjectProperty<Color> color2Property()
      Specifies the second color of the spinner arc.
      See Also:
    • setColor2

      public void setColor2(Color color2)
      Sets the value of the property color2.
      Property description:
      Specifies the second color of the spinner arc.
    • getColor3

      public Color getColor3()
      Gets the value of the property color3.
      Property description:
      Specifies the third color of the spinner arc.
    • color3Property

      public StyleableObjectProperty<Color> color3Property()
      Specifies the third color of the spinner arc.
      See Also:
    • setColor3

      public void setColor3(Color color3)
      Sets the value of the property color3.
      Property description:
      Specifies the third color of the spinner arc.
    • getColor4

      public Color getColor4()
      Gets the value of the property color4.
      Property description:
      Specifies the fourth color of the spinner arc.
    • color4Property

      public StyleableObjectProperty<Color> color4Property()
      Specifies the fourth color of the spinner arc.
      See Also:
    • setColor4

      public void setColor4(Color color4)
      Sets the value of the property color4.
      Property description:
      Specifies the fourth color of the spinner arc.
    • getRadius

      public double getRadius()
      Gets the value of the property radius.
      Property description:
      Specifies the radius of the spinner.
    • radiusProperty

      public StyleableDoubleProperty radiusProperty()
      Specifies the radius of the progress spinner.
    • setRadius

      public void setRadius(double radius)
      Sets the value of the property radius.
      Property description:
      Specifies the radius of the spinner.
    • getStartingAngle

      public double getStartingAngle()
      Gets the value of the property startingAngle.
      Property description:
      Specifies the starting angle of the animation.
    • startingAngleProperty

      public StyleableDoubleProperty startingAngleProperty()
      Specifies the angle at which the spinner will start.
    • setStartingAngle

      public void setStartingAngle(double startingAngle)
      Sets the value of the property startingAngle.
      Property description:
      Specifies the starting angle of the animation.
    • getControlCssMetaDataList

      public static List<CssMetaData<? extends Styleable,?>> getControlCssMetaDataList()
    • createDefaultSkin

      protected Skin<?> createDefaultSkin()
      Overrides:
      createDefaultSkin in class ProgressIndicator
    • getUserAgentStylesheet

      public String getUserAgentStylesheet()
      Overrides:
      getUserAgentStylesheet in class Region
    • getControlCssMetaData

      protected List<CssMetaData<? extends Styleable,?>> getControlCssMetaData()
      Overrides:
      getControlCssMetaData in class Control