In a determinate state, the arc fills up based on the progress value, which ranges from 0.0 to 1.0, where 0.0 indicates no progress and 1.0 indicates completion.
In an indeterminate state, the arc shows a cyclic animation, indicating that progress is ongoing but the exact status is unknown. This state is useful for tasks where the progress cannot be determined.
The control also supports displaying a text or graphic inside the arc to provide additional information or visual feedback to the user.
Usage examples include file downloads, file transfers, or any long-running tasks where visual feedback on progress is beneficial.
Pseudo class: Beyond the inherited, indeterminate, and determinate pseudo-classes from ProgressIndicator, ArcProgressIndicator introduces a completed pseudo-class. This pseudo-class can be used in CSS to apply custom styles when the progress reaches 1.0 (100%).
Tips: If you prefer not to instantiate the animation object during initialization, pass a 0.0 as the initial progress. This setup indicates no progress but avoids entering the indeterminate state, which would otherwise instantiate and start the animation.
Usage examples:
// Initializes with no progress and no animation.
ArcProgressIndicator progressIndicator = new ArcProgressIndicator(0.0);
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final ObjectProperty | |
| private static final StringConverter | |
| private static final ArcType | |
| private static final String | |
| private static final ArcProgressIndicator. | |
| private static final ArcType | |
| private final ObjectProperty | |
| private ObjectProperty | |
| private ObjectProperty | |
| private ObjectProperty |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final ObjectProperty | Returns: the converter propertyThe converter is used to convert the progress value to a string that is displayed |
| public static List | getClassCssMetaData()
Hides javafx. Gets the |
| protected List | getControlCssMetaData()
Overrides javafx. Gets the unmodifiable list of the control's CSS-styleable properties. |
| public final StringConverter | |
| public final Node | |
| public final ArcType | |
| public final ArcProgressIndicator. | |
| public final ArcType | |
| public final ObjectProperty | Returns: the graphic propertyThe graphic property is used to display a custom node within the progress indicator. |
| public final ObjectProperty | Returns: the arc type property for the progressThe arc type property defines the type of the arc that is used to display the progress. |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| public final ObjectProperty | Returns: the style type property for the progressThe style type property defines the visualization type of the arc that is used to display the progress. |
| public final ObjectProperty | Returns: the arc type property for the trackThe arc type property defines the type of the arc that is used to display the track. |
| private void |
| converter | back to summary |
|---|---|
| private final ObjectProperty<StringConverter<Double>> converter | |
| DEFAULT_CONVERTER | back to summary |
|---|---|
| private static final StringConverter<Double> DEFAULT_CONVERTER | |
| DEFAULT_PROGRESS_ARC_TYPE | back to summary |
|---|---|
| private static final ArcType DEFAULT_PROGRESS_ARC_TYPE | |
| DEFAULT_STYLE_CLASS | back to summary |
|---|---|
| private static final String DEFAULT_STYLE_CLASS Hides javafx. | |
| DEFAULT_STYLE_TYPE | back to summary |
|---|---|
| private static final ArcProgressIndicator. | |
| DEFAULT_TRACK_ARC_TYPE | back to summary |
|---|---|
| private static final ArcType DEFAULT_TRACK_ARC_TYPE | |
| graphic | back to summary |
|---|---|
| private final ObjectProperty<Node> graphic | |
| progressArcType | back to summary |
|---|---|
| private ObjectProperty<ArcType> progressArcType | |
| styleType | back to summary |
|---|---|
| private ObjectProperty<ArcProgressIndicator. | |
| trackArcType | back to summary |
|---|---|
| private ObjectProperty<ArcType> trackArcType | |
| ArcProgressIndicator | back to summary |
|---|---|
| public ArcProgressIndicator() | |
| ArcProgressIndicator | back to summary |
|---|---|
| public ArcProgressIndicator(double progress) | |
| converterProperty | back to summary |
|---|---|
| public final ObjectProperty The converter is used to convert the progress value to a string that is displayed
| |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Hides javafx. Doc from javafx. Gets the | |
| getControlCssMetaData | back to summary |
|---|---|
| protected List Overrides javafx. Doc from javafx. Gets the unmodifiable list of the control's CSS-styleable properties.
| |
| getConverter | back to summary |
|---|---|
| public final StringConverter | |
| getGraphic | back to summary |
|---|---|
| public final Node getGraphic() | |
| getProgressArcType | back to summary |
|---|---|
| public final ArcType getProgressArcType() | |
| getStyleType | back to summary |
|---|---|
| public final ArcProgressIndicator. | |
| getTrackArcType | back to summary |
|---|---|
| public final ArcType getTrackArcType() | |
| graphicProperty | back to summary |
|---|---|
| public final ObjectProperty The graphic property is used to display a custom node within the progress indicator. progress label's graphic property is bound to this property.
| |
| progressArcTypeProperty | back to summary |
|---|---|
| public final ObjectProperty The arc type property defines the type of the arc that is used to display the progress.
| |
| setConverter | back to summary |
|---|---|
| public final void setConverter(StringConverter<Double> converter) | |
| setGraphic | back to summary |
|---|---|
| public final void setGraphic(Node graphic) | |
| setProgressArcType | back to summary |
|---|---|
| public final void setProgressArcType(ArcType progressArcType) | |
| setStyleType | back to summary |
|---|---|
| public final void setStyleType(ArcProgressIndicator. | |
| setTrackArcType | back to summary |
|---|---|
| public final void setTrackArcType(ArcType trackArcType) | |
| styleTypeProperty | back to summary |
|---|---|
| public final ObjectProperty The style type property defines the visualization type of the arc that is used to display the progress. Possible values are: default, bold, thin, sector.
| |
| trackArcTypeProperty | back to summary |
|---|---|
| public final ObjectProperty The arc type property defines the type of the arc that is used to display the track.
| |
| updatePseudoClasses | back to summary |
|---|---|
| private void updatePseudoClasses() | |
| Modifier and Type | Field and Description |
|---|---|
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final List | |
| private static final CssMetaData |
| Access | Constructor and Description |
|---|---|
| private |
| PROGRESS_ARC_TYPE | back to summary |
|---|---|
| private static final CssMetaData<ArcProgressIndicator, ArcType> PROGRESS_ARC_TYPE | |
| STYLE_TYPE | back to summary |
|---|---|
| private static final CssMetaData<ArcProgressIndicator, ArcProgressIndicator. | |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| TRACK_ARC_TYPE | back to summary |
|---|---|
| private static final CssMetaData<ArcProgressIndicator, ArcType> TRACK_ARC_TYPE | |
| StyleableProperties | back to summary |
|---|---|
| private StyleableProperties() | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ArcProgressIndicator. | |
| public static final ArcProgressIndicator. | |
| public static final ArcProgressIndicator. | |
| public static final ArcProgressIndicator. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ArcProgressIndicator. | |
| public static ArcProgressIndicator. |
| BOLD | back to summary |
|---|---|
| public static final ArcProgressIndicator. | |
| DEFAULT | back to summary |
|---|---|
| public static final ArcProgressIndicator. | |
| SECTOR | back to summary |
|---|---|
| public static final ArcProgressIndicator. | |
| THIN | back to summary |
|---|---|
| public static final ArcProgressIndicator. | |
| StyleType | back to summary |
|---|---|
| private StyleType() | |
| valueOf | back to summary |
|---|---|
| public static ArcProgressIndicator. | |
| values | back to summary |
|---|---|
| public static ArcProgressIndicator. | |