javax.swing.plaf.metal
Class MetalProgressBarUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ProgressBarUI
          extended by javax.swing.plaf.basic.BasicProgressBarUI
              extended by javax.swing.plaf.metal.MetalProgressBarUI

public class MetalProgressBarUI
extends BasicProgressBarUI

A UI delegate for the JProgressBar component.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicProgressBarUI
BasicProgressBarUI.ChangeHandler
 
Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicProgressBarUI
boxRect, changeListener, progressBar
 
Constructor Summary
MetalProgressBarUI()
          Constructs a new instance of MetalProgressBarUI.
 
Method Summary
static ComponentUI createUI(JComponent component)
          Returns a new instance of MetalProgressBarUI.
 void paintDeterminate(Graphics g, JComponent c)
          Performs the painting for determinate progress bars.
 void paintIndeterminate(Graphics g, JComponent c)
          Performs the painting for indeterminate progress bars.
 
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 javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.

Overrides:
paintDeterminate in class BasicProgressBarUI
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.

Overrides:
paintIndeterminate in class BasicProgressBarUI
Parameters:
g - the graphics context
c - not used here