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
-
public class FlatProgressBarUI extends BasicProgressBarUI
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 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 static ComponentUIcreateUI(JComponent c)protected DimensiongetPreferredInnerHorizontal()protected DimensiongetPreferredInnerVertical()DimensiongetPreferredSize(JComponent c)protected voidinstallDefaults()protected voidinstallListeners()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 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, installUI, paintDeterminate, paintIndeterminate, setCellLength, setCellSpacing, startAnimationTimer, stopAnimationTimer, uninstallDefaults, uninstallUI
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
-
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent c)
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaultsin classBasicProgressBarUI
-
installListeners
protected void installListeners()
- Overrides:
installListenersin classBasicProgressBarUI
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListenersin classBasicProgressBarUI
-
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
-
-