API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.metal. MetalProgressBarUI View Source
Author(s)
Michael C. Albers
Since
Version
1.28 04/07/06
Serial
Hierarchy
 Object
      ComponentUI
          ProgressBarUI
              BasicProgressBarUI
                  MetalProgressBarUI
Implements
Subclasses
Description
public class MetalProgressBarUI
  The Metal implementation of ProgressBarUI.
See also:   
Constructors
public MetalProgressBarUI ()
Methods
Hide/Show inherited methods
public boolean contains (JComponent c, int x, int y) [Inherited From ComponentUI]
  Returns true if the specified x,y location is contained within the look and feel's defined shape of the specified component.
publicstatic ComponentUI createUI (JComponent c) [Overrides BasicProgressBarUI]
public Accessible getAccessibleChild (JComponent c, int i) [Inherited From ComponentUI]
  Returns the ith Accessible child of the object.
public int getAccessibleChildrenCount (JComponent c) [Inherited From ComponentUI]
  Returns the number of accessible children in the object.
protected int getAmountFull (Insets b, int width, int height) [Inherited From BasicProgressBarUI]
  This determines the amount of the progress bar that should be filled based on the percent done gathered from the model.
protected int getAnimationIndex () [Inherited From BasicProgressBarUI]
  Gets the index of the current animation frame.
public int getBaseline (JComponent c, int width, int height) [Inherited From BasicProgressBarUI]
  Returns the baseline.
public BaselineResizeBehavior getBaselineResizeBehavior (JComponent c) [Inherited From BasicProgressBarUI]
  Returns an enum indicating how the baseline of the component changes as the size changes.
protected Rectangle getBox (Rectangle r) [Inherited From BasicProgressBarUI]
  Stores the position and size of the bouncing box that would be painted for the current animation index in r and returns r.
protected int getBoxLength (int availableLength, int otherDimension) [Inherited From BasicProgressBarUI]
  Returns the length of the "bouncing box" to be painted.
protected int getCellLength () [Inherited From BasicProgressBarUI]
  Returns the width (if HORIZONTAL) or height (if VERTICAL) of each of the indivdual cells/units to be rendered in the progress bar.
protected int getCellSpacing () [Inherited From BasicProgressBarUI]
  Returns the spacing between each of the cells/units in the progress bar.
protectedfinal int getFrameCount () [Inherited From BasicProgressBarUI]
  Returns the number of frames for the complete animation loop used by an indeterminate JProgessBar.
public Dimension getMaximumSize (JComponent c) [Inherited From BasicProgressBarUI]
public Dimension getMinimumSize (JComponent c) [Inherited From BasicProgressBarUI]
  The Minimum size for this component is 10.
protected Dimension getPreferredInnerHorizontal () [Inherited From BasicProgressBarUI]
protected Dimension getPreferredInnerVertical () [Inherited From BasicProgressBarUI]
public Dimension getPreferredSize (JComponent c) [Inherited From BasicProgressBarUI]
protected Color getSelectionBackground () [Inherited From BasicProgressBarUI]
The "selectionBackground" is the color of the text when it is painted over an unfilled area of the progress bar.
protected Color getSelectionForeground () [Inherited From BasicProgressBarUI]
The "selectionForeground" is the color of the text when it is painted over a filled area of the progress bar.
protected Point getStringPlacement (Graphics g, String progressString, int x, int y, int width, int height) [Inherited From BasicProgressBarUI]
  Designate the place where the progress string will be painted.
protected void incrementAnimationIndex () [Inherited From BasicProgressBarUI]
  Sets the index of the current animation frame, to the next valid value, which results in the progress bar being repainted.
protected void installDefaults () [Inherited From BasicProgressBarUI]
protected void installListeners () [Inherited From BasicProgressBarUI]
public void installUI (JComponent c) [Inherited From BasicProgressBarUI]
public void paint (Graphics g, JComponent c) [Inherited From BasicProgressBarUI]
Delegates painting to one of two methods: paintDeterminate or paintIndeterminate.
public void paintDeterminate (Graphics g, JComponent c) [Overrides BasicProgressBarUI]
  Draws a bit of special highlighting on the progress bar.
public void paintIndeterminate (Graphics g, JComponent c) [Overrides BasicProgressBarUI]
  Draws a bit of special highlighting on the progress bar and bouncing box.
protected void paintString (Graphics g, int x, int y, int width, int height, int amountFull, Insets b) [Inherited From BasicProgressBarUI]
protected void setAnimationIndex (int newValue) [Inherited From BasicProgressBarUI]
  Sets the index of the current animation frame to the specified value and requests that the progress bar be repainted.
protected void setCellLength (int cellLen) [Inherited From BasicProgressBarUI]
protected void setCellSpacing (int cellSpace) [Inherited From BasicProgressBarUI]
protected void startAnimationTimer () [Inherited From BasicProgressBarUI]
  Starts the animation thread, creating and initializing it if necessary.
protected void stopAnimationTimer () [Inherited From BasicProgressBarUI]
  Stops the animation thread.
protected void uninstallDefaults () [Inherited From BasicProgressBarUI]
protected void uninstallListeners () [Inherited From BasicProgressBarUI]
Removes all listeners installed by this object.
public void uninstallUI (JComponent c) [Inherited From BasicProgressBarUI]
public void update (Graphics g, JComponent c) [Inherited From ComponentUI]
  Notifies this UI delegate that it's time to paint the specified component.
Fields
Hide/Show inherited fields
protected Rectangle boxRect [Inherited From BasicProgressBarUI]
  Used to hold the location and size of the bouncing box (returned by getBox) to be painted.
protected ChangeListener changeListener [Inherited From BasicProgressBarUI]
protected JProgressBar progressBar [Inherited From BasicProgressBarUI]
Nested Classes
  BasicProgressBarUI.ChangeHandler
This inner class is marked "public" due to a compiler bug.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar