javax.swing.plaf.metal

Class MetalProgressBarUI

public class MetalProgressBarUI extends BasicProgressBarUI

A UI delegate for the {@link JProgressBar} component.
Constructor Summary
MetalProgressBarUI()
Constructs a new instance of MetalProgressBarUI.
Method Summary
static ComponentUIcreateUI(JComponent component)
Returns a new instance of MetalProgressBarUI.
voidpaintDeterminate(Graphics g, JComponent c)
Performs the painting for determinate progress bars.
voidpaintIndeterminate(Graphics g, JComponent c)
Performs the painting for indeterminate progress bars.

Constructor Detail

MetalProgressBarUI

public MetalProgressBarUI()
Constructs a new instance of MetalProgressBarUI.

Method Detail

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.

Parameters: g the graphics context c 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.

Parameters: g the graphics context c not used here