javax.swing.plaf.metal
Class MetalProgressBarUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ProgressBarUI
javax.swing.plaf.basic.BasicProgressBarUI
javax.swing.plaf.metal.MetalProgressBarUI
public class MetalProgressBarUI
- extends BasicProgressBarUI
A UI delegate for the JProgressBar
component.
Methods inherited from class javax.swing.plaf.basic.BasicProgressBarUI |
getAmountFull, getAnimationIndex, getBox, getCellLength, getCellSpacing, getMaximumSize, getMinimumSize, getPreferredInnerHorizontal, getPreferredInnerVertical, getPreferredSize, getSelectionBackground, getSelectionForeground, getStringPlacement, incrementAnimationIndex, installDefaults, installListeners, installUI, paint, paintString, setAnimationIndex, setCellLength, setCellSpacing, startAnimationTimer, stopAnimationTimer, uninstallDefaults, uninstallListeners, uninstallUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetalProgressBarUI
public MetalProgressBarUI()
- Constructs a new instance of
MetalProgressBarUI
.
createUI
public static ComponentUI createUI(JComponent component)
- Returns a new instance of
MetalProgressBarUI
.
- Parameters:
component
- the component for which we return an UI instance
- Returns:
- A new instance of
MetalProgressBarUI
.
paintDeterminate
public void paintDeterminate(Graphics g,
JComponent c)
- Performs the painting for determinate progress bars. This calls the
superclass behaviour and then adds some highlighting to the upper and left
edge of the progress bar.
- Overrides:
paintDeterminate
in class BasicProgressBarUI
- Parameters:
g
- the graphics contextc
- not used here
paintIndeterminate
public void paintIndeterminate(Graphics g,
JComponent c)
- Performs the painting for indeterminate progress bars. This calls the
superclass behaviour and then adds some highlighting to the upper and left
edge of the progress bar.
- Overrides:
paintIndeterminate
in class BasicProgressBarUI
- Parameters:
g
- the graphics contextc
- not used here