public class ProgressIndicatorSkin extends BehaviorSkinBase<ProgressIndicator,BehaviorBase<ProgressIndicator>>
Modifier and Type | Class and Description |
---|---|
private class |
ProgressIndicatorSkin.DeterminateIndicator
*
DeterminateIndicator *
*
|
private class |
ProgressIndicatorSkin.IndeterminateSpinner |
Modifier and Type | Field and Description |
---|---|
protected Duration |
CLIPPED_DELAY
*
IndeterminateSpinner *
*
|
private ProgressIndicator |
control |
private ProgressIndicatorSkin.DeterminateIndicator |
determinateIndicator |
private static java.lang.String |
DONE
*
Private fields *
*
|
private static Text |
doneText
doneText is just used to know the size of done as that is the biggest text we need to allow for
|
private static CssMetaData<ProgressIndicator,java.lang.Number> |
INDETERMINATE_SEGMENT_COUNT |
private IntegerProperty |
indeterminateSegmentCount
The number of segments in the spinner.
|
protected Animation |
indeterminateTransition |
private static CssMetaData<ProgressIndicator,Paint> |
PROGRESS_COLOR
*
Stylesheet Handling *
*
|
private ObjectProperty<Paint> |
progressColor
The colour of the progress segment.
|
private static CssMetaData<ProgressIndicator,java.lang.Boolean> |
SPIN_ENABLED |
private BooleanProperty |
spinEnabled
True if the progress indicator should rotate as well as animate opacity.
|
private ProgressIndicatorSkin.IndeterminateSpinner |
spinner |
static java.util.List<CssMetaData<? extends Styleable,?>> |
STYLEABLES |
protected Duration |
UNCLIPPED_DELAY |
private ReadOnlyObjectProperty<Window> |
windowProperty |
private ReadOnlyBooleanProperty |
windowShowingProperty |
IS_TOUCH_SUPPORTED
Constructor and Description |
---|
ProgressIndicatorSkin(ProgressIndicator control)
*
Constructors *
*
|
Modifier and Type | Method and Description |
---|---|
protected void |
createIndeterminateTimeline() |
void |
dispose()
Called by a Skinnable when the Skin is replaced on the Skinnable.
|
static java.util.List<CssMetaData<? extends Styleable,?>> |
getClassCssMetaData() |
java.util.List<CssMetaData<? extends Styleable,?>> |
getCssMetaData()
This method should delegate to
Node.getClassCssMetaData() so that
a Node's CssMetaData can be accessed without the need for reflection. |
(package private) Paint |
getProgressColor() |
protected void |
handleControlPropertyChanged(java.lang.String p)
*
API (for ProgressBarSkin) *
*
|
protected void |
initialize() |
protected void |
layoutChildren(double x,
double y,
double w,
double h)
*
Layout *
*
|
protected void |
pauseTimeline(boolean pause) |
protected void |
updateAnimation() |
protected void |
updateProgress() |
private void |
updateWindowListeners()
*
Listeners *
*
|
getBehavior, registerChangeListener, unregisterChangeListener
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, executeAccessibleAction, getChildren, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpace
private ObjectProperty<Paint> progressColor
private IntegerProperty indeterminateSegmentCount
private final BooleanProperty spinEnabled
private static final java.lang.String DONE
private static final Text doneText
private ProgressIndicatorSkin.IndeterminateSpinner spinner
private ProgressIndicatorSkin.DeterminateIndicator determinateIndicator
private ProgressIndicator control
protected Animation indeterminateTransition
private ReadOnlyObjectProperty<Window> windowProperty
private ReadOnlyBooleanProperty windowShowingProperty
protected final Duration CLIPPED_DELAY
protected final Duration UNCLIPPED_DELAY
private static final CssMetaData<ProgressIndicator,Paint> PROGRESS_COLOR
private static final CssMetaData<ProgressIndicator,java.lang.Number> INDETERMINATE_SEGMENT_COUNT
private static final CssMetaData<ProgressIndicator,java.lang.Boolean> SPIN_ENABLED
public static final java.util.List<CssMetaData<? extends Styleable,?>> STYLEABLES
public ProgressIndicatorSkin(ProgressIndicator control)
Paint getProgressColor()
protected void handleControlPropertyChanged(java.lang.String p)
handleControlPropertyChanged
in class BehaviorSkinBase<ProgressIndicator,BehaviorBase<ProgressIndicator>>
protected void initialize()
public void dispose()
BehaviorSkinBase
Skin.getSkinnable()
and Skin.getNode()
should return null following a call to dispose. Calling dispose twice
has no effect.dispose
in interface Skin<ProgressIndicator>
dispose
in class BehaviorSkinBase<ProgressIndicator,BehaviorBase<ProgressIndicator>>
protected void updateProgress()
protected void createIndeterminateTimeline()
protected void pauseTimeline(boolean pause)
protected void updateAnimation()
private void updateWindowListeners()
protected void layoutChildren(double x, double y, double w, double h)
layoutChildren
in class SkinBase<ProgressIndicator>
public static java.util.List<CssMetaData<? extends Styleable,?>> getClassCssMetaData()
public java.util.List<CssMetaData<? extends Styleable,?>> getCssMetaData()
Node.getClassCssMetaData()
so that
a Node's CssMetaData can be accessed without the need for reflection.getCssMetaData
in class SkinBase<ProgressIndicator>