Package com.formdev.flatlaf.ui
Class FlatProgressBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ProgressBarUI
javax.swing.plaf.basic.BasicProgressBarUI
com.formdev.flatlaf.ui.FlatProgressBarUI
- All Implemented Interfaces:
FlatStylingSupport.StyleableUI
Provides the Flat LaF UI delegate for
JProgressBar
.
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicProgressBarUI
BasicProgressBarUI.ChangeHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
protected Dimension
protected boolean
private PropertyChangeListener
protected boolean
protected Dimension
Fields inherited from class javax.swing.plaf.basic.BasicProgressBarUI
boxRect, changeListener, progressBar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyStyle
(Object style) protected Object
applyStyleProperty
(String key, Object value) static ComponentUI
protected Dimension
protected Dimension
getStyleableValue
(JComponent c, String key) protected void
protected void
protected void
void
void
paint
(Graphics g, JComponent c) protected void
paintString
(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) protected void
setAnimationIndex
(int newValue) protected void
protected void
void
void
update
(Graphics g, JComponent c) Methods inherited from class javax.swing.plaf.basic.BasicProgressBarUI
getAmountFull, getAnimationIndex, getBaseline, getBaselineResizeBehavior, getBox, getBoxLength, getCellLength, getCellSpacing, getFrameCount, getMaximumSize, getMinimumSize, getSelectionBackground, getSelectionForeground, getStringPlacement, incrementAnimationIndex, paintDeterminate, paintIndeterminate, setCellLength, setCellSpacing, startAnimationTimer, stopAnimationTimer
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
Field Details
-
arc
protected int arc -
horizontalSize
-
verticalSize
-
largeHeight
protected boolean largeHeight- Since:
- 2
-
square
protected boolean square- Since:
- 2
-
propertyChangeListener
-
oldStyleValues
-
-
Constructor Details
-
FlatProgressBarUI
public FlatProgressBarUI()
-
-
Method Details
-
createUI
-
installUI
- Overrides:
installUI
in classBasicProgressBarUI
-
uninstallUI
- Overrides:
uninstallUI
in classBasicProgressBarUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaults
in classBasicProgressBarUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaults
in classBasicProgressBarUI
-
installListeners
protected void installListeners()- Overrides:
installListeners
in classBasicProgressBarUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListeners
in classBasicProgressBarUI
-
installStyle
protected void installStyle()- Since:
- 2
-
applyStyle
- Since:
- 2
-
applyStyleProperty
- Since:
- 2
-
getStyleableInfos
- Specified by:
getStyleableInfos
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2
-
getStyleableValue
- Specified by:
getStyleableValue
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2.5
-
getPreferredSize
- Overrides:
getPreferredSize
in classBasicProgressBarUI
-
getPreferredInnerHorizontal
- Overrides:
getPreferredInnerHorizontal
in classBasicProgressBarUI
-
getPreferredInnerVertical
- Overrides:
getPreferredInnerVertical
in classBasicProgressBarUI
-
update
- Overrides:
update
in classComponentUI
-
paint
- Overrides:
paint
in classBasicProgressBarUI
-
paintString
protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b) - Overrides:
paintString
in classBasicProgressBarUI
-
setAnimationIndex
protected void setAnimationIndex(int newValue) - Overrides:
setAnimationIndex
in classBasicProgressBarUI
-