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 javax.swing.plaf.basic.BasicProgressBarUI implements FlatStylingSupport.StyleableUI
Provides the Flat LaF UI delegate forJProgressBar.
-
-
Field Summary
Fields Modifier and Type Field Description protected intarcprotected java.awt.DimensionhorizontalSizeprotected booleanlargeHeightprivate java.util.Map<java.lang.String,java.lang.Object>oldStyleValuesprivate java.beans.PropertyChangeListenerpropertyChangeListenerprotected booleansquareprotected java.awt.DimensionverticalSize
-
Constructor Summary
Constructors Constructor Description FlatProgressBarUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyStyle(java.lang.Object style)protected java.lang.ObjectapplyStyleProperty(java.lang.String key, java.lang.Object value)static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)protected java.awt.DimensiongetPreferredInnerHorizontal()protected java.awt.DimensiongetPreferredInnerVertical()java.awt.DimensiongetPreferredSize(javax.swing.JComponent c)java.util.Map<java.lang.String,java.lang.Class<?>>getStyleableInfos(javax.swing.JComponent c)java.lang.ObjectgetStyleableValue(javax.swing.JComponent c, java.lang.String key)protected voidinstallDefaults()protected voidinstallListeners()protected voidinstallStyle()voidinstallUI(javax.swing.JComponent c)voidpaint(java.awt.Graphics g, javax.swing.JComponent c)protected voidpaintString(java.awt.Graphics g, int x, int y, int width, int height, int amountFull, java.awt.Insets b)protected voidsetAnimationIndex(int newValue)protected voiduninstallDefaults()protected voiduninstallListeners()voiduninstallUI(javax.swing.JComponent c)voidupdate(java.awt.Graphics g, javax.swing.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
-
-
-
-
Field Detail
-
arc
protected int arc
-
horizontalSize
protected java.awt.Dimension horizontalSize
-
verticalSize
protected java.awt.Dimension verticalSize
-
largeHeight
protected boolean largeHeight
- Since:
- 2
-
square
protected boolean square
- Since:
- 2
-
propertyChangeListener
private java.beans.PropertyChangeListener propertyChangeListener
-
oldStyleValues
private java.util.Map<java.lang.String,java.lang.Object> oldStyleValues
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUIin classjavax.swing.plaf.basic.BasicProgressBarUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUIin classjavax.swing.plaf.basic.BasicProgressBarUI
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaultsin classjavax.swing.plaf.basic.BasicProgressBarUI
-
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaultsin classjavax.swing.plaf.basic.BasicProgressBarUI
-
installListeners
protected void installListeners()
- Overrides:
installListenersin classjavax.swing.plaf.basic.BasicProgressBarUI
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListenersin classjavax.swing.plaf.basic.BasicProgressBarUI
-
installStyle
protected void installStyle()
- Since:
- 2
-
applyStyle
protected void applyStyle(java.lang.Object style)
- Since:
- 2
-
applyStyleProperty
protected java.lang.Object applyStyleProperty(java.lang.String key, java.lang.Object value)- Since:
- 2
-
getStyleableInfos
public java.util.Map<java.lang.String,java.lang.Class<?>> getStyleableInfos(javax.swing.JComponent c)
- Specified by:
getStyleableInfosin interfaceFlatStylingSupport.StyleableUI- Since:
- 2
-
getStyleableValue
public java.lang.Object getStyleableValue(javax.swing.JComponent c, java.lang.String key)- Specified by:
getStyleableValuein interfaceFlatStylingSupport.StyleableUI- Since:
- 2.5
-
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSizein classjavax.swing.plaf.basic.BasicProgressBarUI
-
getPreferredInnerHorizontal
protected java.awt.Dimension getPreferredInnerHorizontal()
- Overrides:
getPreferredInnerHorizontalin classjavax.swing.plaf.basic.BasicProgressBarUI
-
getPreferredInnerVertical
protected java.awt.Dimension getPreferredInnerVertical()
- Overrides:
getPreferredInnerVerticalin classjavax.swing.plaf.basic.BasicProgressBarUI
-
update
public void update(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
updatein classjavax.swing.plaf.ComponentUI
-
paint
public void paint(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
paintin classjavax.swing.plaf.basic.BasicProgressBarUI
-
paintString
protected void paintString(java.awt.Graphics g, int x, int y, int width, int height, int amountFull, java.awt.Insets b)- Overrides:
paintStringin classjavax.swing.plaf.basic.BasicProgressBarUI
-
setAnimationIndex
protected void setAnimationIndex(int newValue)
- Overrides:
setAnimationIndexin classjavax.swing.plaf.basic.BasicProgressBarUI
-
-