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 int
arc
protected java.awt.Dimension
horizontalSize
protected boolean
largeHeight
private java.util.Map<java.lang.String,java.lang.Object>
oldStyleValues
private java.beans.PropertyChangeListener
propertyChangeListener
protected boolean
square
protected java.awt.Dimension
verticalSize
-
Constructor Summary
Constructors Constructor Description FlatProgressBarUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyStyle(java.lang.Object style)
protected java.lang.Object
applyStyleProperty(java.lang.String key, java.lang.Object value)
static javax.swing.plaf.ComponentUI
createUI(javax.swing.JComponent c)
protected java.awt.Dimension
getPreferredInnerHorizontal()
protected java.awt.Dimension
getPreferredInnerVertical()
java.awt.Dimension
getPreferredSize(javax.swing.JComponent c)
java.util.Map<java.lang.String,java.lang.Class<?>>
getStyleableInfos(javax.swing.JComponent c)
java.lang.Object
getStyleableValue(javax.swing.JComponent c, java.lang.String key)
protected void
installDefaults()
protected void
installListeners()
protected void
installStyle()
void
installUI(javax.swing.JComponent c)
void
paint(java.awt.Graphics g, javax.swing.JComponent c)
protected void
paintString(java.awt.Graphics g, int x, int y, int width, int height, int amountFull, java.awt.Insets b)
protected void
setAnimationIndex(int newValue)
protected void
uninstallDefaults()
protected void
uninstallListeners()
void
uninstallUI(javax.swing.JComponent c)
void
update(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:
installUI
in classjavax.swing.plaf.basic.BasicProgressBarUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUI
in classjavax.swing.plaf.basic.BasicProgressBarUI
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaults
in classjavax.swing.plaf.basic.BasicProgressBarUI
-
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaults
in classjavax.swing.plaf.basic.BasicProgressBarUI
-
installListeners
protected void installListeners()
- Overrides:
installListeners
in classjavax.swing.plaf.basic.BasicProgressBarUI
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListeners
in 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:
getStyleableInfos
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2
-
getStyleableValue
public java.lang.Object getStyleableValue(javax.swing.JComponent c, java.lang.String key)
- Specified by:
getStyleableValue
in interfaceFlatStylingSupport.StyleableUI
- Since:
- 2.5
-
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSize
in classjavax.swing.plaf.basic.BasicProgressBarUI
-
getPreferredInnerHorizontal
protected java.awt.Dimension getPreferredInnerHorizontal()
- Overrides:
getPreferredInnerHorizontal
in classjavax.swing.plaf.basic.BasicProgressBarUI
-
getPreferredInnerVertical
protected java.awt.Dimension getPreferredInnerVertical()
- Overrides:
getPreferredInnerVertical
in classjavax.swing.plaf.basic.BasicProgressBarUI
-
update
public void update(java.awt.Graphics g, javax.swing.JComponent c)
- Overrides:
update
in classjavax.swing.plaf.ComponentUI
-
paint
public void paint(java.awt.Graphics g, javax.swing.JComponent c)
- Overrides:
paint
in 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:
paintString
in classjavax.swing.plaf.basic.BasicProgressBarUI
-
setAnimationIndex
protected void setAnimationIndex(int newValue)
- Overrides:
setAnimationIndex
in classjavax.swing.plaf.basic.BasicProgressBarUI
-
-