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
public class FlatProgressBarUI extends BasicProgressBarUI implements FlatStylingSupport.StyleableUI
Provides the Flat LaF UI delegate forJProgressBar.- UiDefault:
- ProgressBar.font Font, ProgressBar.background Color, ProgressBar.foreground Color, ProgressBar.selectionBackground Color, ProgressBar.selectionForeground Color, ProgressBar.border Border, ProgressBar.horizontalSize Dimension default is 146,12, ProgressBar.verticalSize Dimension default is 12,146, ProgressBar.repaintInterval int default is 50 milliseconds, ProgressBar.cycleTime int default is 3000 milliseconds , ProgressBar.arc int
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicProgressBarUI
BasicProgressBarUI.ChangeHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected intarcprotected DimensionhorizontalSizeprotected booleanlargeHeightprotected booleansquareprotected DimensionverticalSize-
Fields inherited from class javax.swing.plaf.basic.BasicProgressBarUI
boxRect, changeListener, progressBar
-
-
Constructor Summary
Constructors Constructor Description FlatProgressBarUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyStyle(Object style)protected ObjectapplyStyleProperty(String key, Object value)static ComponentUIcreateUI(JComponent c)protected DimensiongetPreferredInnerHorizontal()protected DimensiongetPreferredInnerVertical()DimensiongetPreferredSize(JComponent c)Map<String,Class<?>>getStyleableInfos(JComponent c)ObjectgetStyleableValue(JComponent c, String key)protected voidinstallDefaults()protected voidinstallListeners()protected voidinstallStyle()voidinstallUI(JComponent c)voidpaint(Graphics g, JComponent c)protected voidpaintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b)protected voidsetAnimationIndex(int newValue)protected voiduninstallDefaults()protected voiduninstallListeners()voidupdate(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, uninstallUI
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
-
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
installUI
public void installUI(JComponent c)
- Overrides:
installUIin classBasicProgressBarUI
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaultsin classBasicProgressBarUI
-
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaultsin classBasicProgressBarUI
-
installListeners
protected void installListeners()
- Overrides:
installListenersin classBasicProgressBarUI
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListenersin classBasicProgressBarUI
-
installStyle
protected void installStyle()
- Since:
- 2
-
applyStyle
protected void applyStyle(Object style)
- Since:
- 2
-
getStyleableInfos
public Map<String,Class<?>> getStyleableInfos(JComponent c)
- Specified by:
getStyleableInfosin interfaceFlatStylingSupport.StyleableUI- Since:
- 2
-
getStyleableValue
public Object getStyleableValue(JComponent c, String key)
- Specified by:
getStyleableValuein interfaceFlatStylingSupport.StyleableUI- Since:
- 2.5
-
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
getPreferredSizein classBasicProgressBarUI
-
getPreferredInnerHorizontal
protected Dimension getPreferredInnerHorizontal()
- Overrides:
getPreferredInnerHorizontalin classBasicProgressBarUI
-
getPreferredInnerVertical
protected Dimension getPreferredInnerVertical()
- Overrides:
getPreferredInnerVerticalin classBasicProgressBarUI
-
update
public void update(Graphics g, JComponent c)
- Overrides:
updatein classComponentUI
-
paint
public void paint(Graphics g, JComponent c)
- Overrides:
paintin classBasicProgressBarUI
-
paintString
protected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b)
- Overrides:
paintStringin classBasicProgressBarUI
-
setAnimationIndex
protected void setAnimationIndex(int newValue)
- Overrides:
setAnimationIndexin classBasicProgressBarUI
-
-