ProgressIndicator control.
ProgressIndicator
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Duration | |
| private ProgressIndicator | |
| private ProgressIndicatorSkin. | |
| private final String | DONE
DONE string is just used to know the size of Done as that is the biggest text we need to allow for |
| private static final CssMetaData | |
| private IntegerProperty | indeterminateSegmentCount
The number of segments in the spinner. |
| pack-priv Animation | |
| private static final CssMetaData | |
| private ObjectProperty | progressColor
The colour of the progress segment. |
| private static final CssMetaData | |
| private final BooleanProperty | spinEnabled
True if the progress indicator should rotate as well as animate opacity. |
| private ProgressIndicatorSkin. | |
| private static final List | |
| private TreeShowingProperty | |
| pack-priv final Duration |
| Access | Constructor and Description |
|---|---|
| public | ProgressIndicatorSkin(ProgressIndicator
The control that this skin should be installed onto. control)Creates a new ProgressIndicatorSkin instance, installing the necessary child
nodes into the Control |
| Modifier and Type | Method and Description |
|---|---|
| protected double | computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Computes the maximum allowable height of the Skin, based on the provided width. |
| protected double | computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Computes the maximum allowable width of the Skin, based on the provided height. |
| protected double | computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Computes the minimum allowable height of the Skin, based on the provided width. |
| protected double | computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Computes the minimum allowable width of the Skin, based on the provided height. |
| protected double | computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Calculates the preferred height of this |
| protected double | computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Calculates the preferred width of this |
| pack-priv void | |
| public void | dispose()
Overrides javafx. Implements javafx. Called when a previously installed skin is about to be removed from its associated control. |
| public static List | Returns: the CssMetaData associated with this class, which may include the CssMetaData of its superclassesHides javafx. Returns the CssMetaData associated with this class, which may include the CssMetaData of its superclasses. |
| public List | getCssMetaData()
Overrides javafx. This method should delegate to |
| pack-priv Paint | |
| pack-priv void | |
| protected void | layoutChildren(final double x, final double y, final double w, final double h)
Overrides javafx. Called during the layout pass of the scenegraph. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void |
| CLIPPED_DELAY | back to summary |
|---|---|
| pack-priv final Duration CLIPPED_DELAY | |
| control | back to summary |
|---|---|
| private ProgressIndicator control | |
| determinateIndicator | back to summary |
|---|---|
| private ProgressIndicatorSkin. | |
| DONE | back to summary |
|---|---|
| private final String DONE DONE string is just used to know the size of Done as that is the biggest text we need to allow for | |
| INDETERMINATE_SEGMENT_COUNT | back to summary |
|---|---|
| private static final CssMetaData<ProgressIndicator, Number> INDETERMINATE_SEGMENT_COUNT | |
| indeterminateSegmentCount | back to summary |
|---|---|
| private IntegerProperty indeterminateSegmentCount The number of segments in the spinner. | |
| indeterminateTransition | back to summary |
|---|---|
| pack-priv Animation indeterminateTransition | |
| PROGRESS_COLOR | back to summary |
|---|---|
| private static final CssMetaData<ProgressIndicator, Paint> PROGRESS_COLOR | |
| progressColor | back to summary |
|---|---|
| private ObjectProperty<Paint> progressColor The colour of the progress segment. | |
| SPIN_ENABLED | back to summary |
|---|---|
| private static final CssMetaData<ProgressIndicator, Boolean> SPIN_ENABLED | |
| spinEnabled | back to summary |
|---|---|
| private final BooleanProperty spinEnabled True if the progress indicator should rotate as well as animate opacity. | |
| spinner | back to summary |
|---|---|
| private ProgressIndicatorSkin. | |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| treeShowingProperty | back to summary |
|---|---|
| private TreeShowingProperty treeShowingProperty | |
| UNCLIPPED_DELAY | back to summary |
|---|---|
| pack-priv final Duration UNCLIPPED_DELAY | |
| ProgressIndicatorSkin | back to summary |
|---|---|
| public ProgressIndicatorSkin(ProgressIndicator control) Creates a new ProgressIndicatorSkin instance, installing the necessary child
nodes into the Control
| |
| computeMaxHeight | back to summary |
|---|---|
| protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the maximum allowable height of the Skin, based on the provided width.
| |
| computeMaxWidth | back to summary |
|---|---|
| protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the maximum allowable width of the Skin, based on the provided height.
| |
| computeMinHeight | back to summary |
|---|---|
| protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the minimum allowable height of the Skin, based on the provided width.
| |
| computeMinWidth | back to summary |
|---|---|
| protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the minimum allowable width of the Skin, based on the provided height.
| |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred height of this
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred width of this
| |
| createIndeterminateTimeline | back to summary |
|---|---|
| pack-priv void createIndeterminateTimeline() | |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides javafx. Implements javafx. Doc from javafx. Called when a previously installed skin is about to be removed from its associated control.
This allows the skin to do clean up, like removing listeners and bindings, and undo any changes
to the control's properties.
After this method completes,
Calling
| |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Hides javafx. Returns the CssMetaData associated with this class, which may include the CssMetaData of its superclasses.
| |
| getCssMetaData | back to summary |
|---|---|
| public List Overrides javafx. Doc from javafx. This method should delegate to
| |
| getProgressColor | back to summary |
|---|---|
| pack-priv Paint getProgressColor() | |
| initialize | back to summary |
|---|---|
| pack-priv void initialize() | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren(final double x, final double y, final double w, final double h) Overrides javafx. Doc from javafx. Called during the layout pass of the scenegraph.
| |
| pauseTimeline | back to summary |
|---|---|
| pack-priv void pauseTimeline(boolean pause) | |
| updateAnimation | back to summary |
|---|---|
| pack-priv void updateAnimation() | |
| updateProgress | back to summary |
|---|---|
| pack-priv void updateProgress() | |
| Modifier and Type | Field and Description |
|---|---|
| private Arc | |
| private int | |
| private double | |
| private double | |
| private StackPane | |
| private Circle | |
| private int | |
| private StackPane | |
| private Text | |
| private double | |
| private StackPane |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected double | computeMaxHeight(double width)
Overrides javafx. Computes the maximum height of this region. |
| protected double | computeMaxWidth(double height)
Overrides javafx. Computes the maximum width for this region. |
| protected double | computePrefHeight(double width)
Overrides javafx. Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. |
| protected double | computePrefWidth(double height)
Overrides javafx. Computes the preferred width of this region for the given height. |
| protected void | layoutChildren()
Overrides javafx. Invoked during the layout pass to layout the children in this
|
| private void | |
| private void | |
| private void | |
| public boolean | usesMirroring()
Overrides javafx. Determines whether a node should be mirrored when node orientation is right-to-left. |
| arcShape | back to summary |
|---|---|
| private Arc arcShape | |
| degProgress | back to summary |
|---|---|
| private int degProgress | |
| doneTextHeight | back to summary |
|---|---|
| private double doneTextHeight | |
| doneTextWidth | back to summary |
|---|---|
| private double doneTextWidth | |
| indicator | back to summary |
|---|---|
| private StackPane indicator | |
| indicatorCircle | back to summary |
|---|---|
| private Circle indicatorCircle | |
| intProgress | back to summary |
|---|---|
| private int intProgress | |
| progress | back to summary |
|---|---|
| private StackPane progress | |
| text | back to summary |
|---|---|
| private Text text | |
| textGap | back to summary |
|---|---|
| private double textGap | |
| tick | back to summary |
|---|---|
| private StackPane tick | |
| DeterminateIndicator | back to summary |
|---|---|
| public DeterminateIndicator(ProgressIndicator control, ProgressIndicatorSkin s, Paint fillOverride) | |
| computeMaxHeight | back to summary |
|---|---|
| protected double computeMaxHeight(double width) Overrides javafx. Doc from javafx. Computes the maximum height of this region. Returns Double.MAX_VALUE by default. Region subclasses may override this method to return a different value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
| |
| computeMaxWidth | back to summary |
|---|---|
| protected double computeMaxWidth(double height) Overrides javafx. Doc from javafx. Computes the maximum width for this region. Returns Double.MAX_VALUE by default. Region subclasses may override this method to return an different value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.
| |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width) Overrides javafx. Doc from javafx. Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double height) Overrides javafx. Doc from javafx. Computes the preferred width of this region for the given height. Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.
| |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren() Overrides javafx. Doc from javafx. Invoked during the layout pass to layout the children in this
Subclasses should override this function to layout content as needed.
| |
| setFillOverride | back to summary |
|---|---|
| private void setFillOverride(Paint fillOverride) | |
| unregisterListener | back to summary |
|---|---|
| private void unregisterListener() | |
| updateProgress | back to summary |
|---|---|
| private void updateProgress(double progress) | |
| usesMirroring | back to summary |
|---|---|
| public boolean usesMirroring() Overrides javafx. Doc from javafx. Determines whether a node should be mirrored when node orientation is right-to-left.
When a node is mirrored, the origin is automatically moved to the
top right corner causing the node to layout children and draw from
right to left using a mirroring transformation. Some nodes may wish
to draw from right to left without using a transformation. These
nodes will answer
| |
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private Paint | |
| private final List | |
| private ProgressIndicatorSkin. | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected void | layoutChildren()
Overrides javafx. Invoked during the layout pass to layout the children in this
|
| private void | |
| private void | |
| public void | |
| public void | |
| private void |
| fillOverride | back to summary |
|---|---|
| private Paint fillOverride | |
| opacities | back to summary |
|---|---|
| private final List<Double> opacities | |
| pathsG | back to summary |
|---|---|
| private ProgressIndicatorSkin. | |
| spinEnabled | back to summary |
|---|---|
| private boolean spinEnabled | |
| IndeterminateSpinner | back to summary |
|---|---|
| private IndeterminateSpinner(boolean spinEnabled, Paint fillOverride) | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren() Overrides javafx. Doc from javafx. Invoked during the layout pass to layout the children in this
Subclasses should override this function to layout content as needed.
| |
| rebuild | back to summary |
|---|---|
| private void rebuild() | |
| rebuildTimeline | back to summary |
|---|---|
| private void rebuildTimeline() | |
| setFillOverride | back to summary |
|---|---|
| public void setFillOverride(Paint fillOverride) | |
| setSpinEnabled | back to summary |
|---|---|
| public void setSpinEnabled(boolean spinEnabled) | |
| shiftColors | back to summary |
|---|---|
| private void shiftColors() | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected double | computePrefHeight(double width)
Overrides javafx. Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. |
| protected double | computePrefWidth(double height)
Overrides javafx. Computes the preferred width of this region for the given height. |
| protected void | layoutChildren()
Overrides javafx. Invoked during the layout pass to layout the children in this
|
| IndicatorPaths | back to summary |
|---|---|
| private IndicatorPaths() | |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width) Overrides javafx. Doc from javafx. Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double height) Overrides javafx. Doc from javafx. Computes the preferred width of this region for the given height. Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.
| |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren() Overrides javafx. Doc from javafx. Invoked during the layout pass to layout the children in this
Subclasses should override this function to layout content as needed.
| |