APIdia Launch Partner
Top Description Fields Constructors Methods
javax.swing.plaf.metal

public Class MetalProgressBarUI

extends BasicProgressBarUI
Class Inheritance
Imports
javax.swing.*, javax.swing.plaf.*, javax.swing.plaf.basic.*, java.awt.*

The Metal implementation of ProgressBarUI.

Warning

Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans has been added to the java.beans package. Please see java.beans.XMLEncoder.

Author
Michael C. Albers

Field Summary

Modifier and TypeField and Description
private Rectangle
private Rectangle
Inherited from javax.swing.plaf.basic.BasicProgressBarUI:
boxRectchangeListenerprogressBar

Constructor Summary

AccessConstructor and Description
public
MetalProgressBarUI()

Constructs a MetalProgressBarUI.

Method Summary

Modifier and TypeMethod and Description
public static ComponentUI

Returns:

an instance of MetalProgressBarUI
createUI
(JComponent
a component
c
)

Hides javax.swing.plaf.basic.BasicProgressBarUI.createUI.

Constructs an instance of MetalProgressBarUI.

public void
paintDeterminate(Graphics g, JComponent c)

Overrides javax.swing.plaf.basic.BasicProgressBarUI.paintDeterminate.

Draws a bit of special highlighting on the progress bar.

public void
paintIndeterminate(Graphics g, JComponent c)

Overrides javax.swing.plaf.basic.BasicProgressBarUI.paintIndeterminate.

Draws a bit of special highlighting on the progress bar and bouncing box.

Inherited from javax.swing.plaf.basic.BasicProgressBarUI:
getAmountFullgetAnimationIndexgetBaselinegetBaselineResizeBehaviorgetBoxgetBoxLengthgetCellLengthgetCellSpacinggetFrameCountgetMaximumSizegetMinimumSizegetPreferredInnerHorizontalgetPreferredInnerVerticalgetPreferredSizegetSelectionBackgroundgetSelectionForegroundgetStringPlacementincrementAnimationIndexinstallDefaultsinstallListenersinstallUIpaintpaintStringsetAnimationIndexsetCellLengthsetCellSpacingstartAnimationTimerstopAnimationTimeruninstallDefaultsuninstallListenersuninstallUI

Field Detail

boxback to summary
private Rectangle box
innardsback to summary
private Rectangle innards

Constructor Detail

MetalProgressBarUIback to summary
public MetalProgressBarUI()

Constructs a MetalProgressBarUI.

Method Detail

createUIback to summary
public static ComponentUI createUI(JComponent c)

Hides javax.swing.plaf.basic.BasicProgressBarUI.createUI.

Constructs an instance of MetalProgressBarUI.

Parameters
c:JComponent

a component

Returns:ComponentUI

an instance of MetalProgressBarUI

paintDeterminateback to summary
public void paintDeterminate(Graphics g, JComponent c)

Overrides javax.swing.plaf.basic.BasicProgressBarUI.paintDeterminate.

Draws a bit of special highlighting on the progress bar. The core painting is deferred to the BasicProgressBar's paintDeterminate method.

Since
1.4
paintIndeterminateback to summary
public void paintIndeterminate(Graphics g, JComponent c)

Overrides javax.swing.plaf.basic.BasicProgressBarUI.paintIndeterminate.

Draws a bit of special highlighting on the progress bar and bouncing box. The core painting is deferred to the BasicProgressBar's paintIndeterminate method.

Since
1.4