| 
 | JavaTM 2 Platform Std. Ed. v1.3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--javax.swing.plaf.ComponentUI | +--javax.swing.plaf.ProgressBarUI | +--javax.swing.plaf.basic.BasicProgressBarUI
A Basic L&F implementation of ProgressBarUI.
| Inner Class Summary | |
|  class | BasicProgressBarUI.ChangeHandlerThis inner class is marked "public" due to a compiler bug. | 
| Field Summary | |
| protected  ChangeListener | changeListener | 
| protected  JProgressBar | progressBar | 
| Constructor Summary | |
| BasicProgressBarUI() | |
| Method Summary | |
| static ComponentUI | createUI(JComponent x) | 
| protected  int | getAmountFull(Insets b,
              int width,
              int height)This determines the amount of the progress bar that should be filled based on the percent done gathered from the model. | 
| protected  int | getCellLength()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()Returns the spacing between each of the cells/units in the progress bar. | 
|  Dimension | getMaximumSize(JComponent c) | 
|  Dimension | getMinimumSize(JComponent c)The Minimum size for this component is 10. | 
| protected  Dimension | getPreferredInnerHorizontal() | 
| protected  Dimension | getPreferredInnerVertical() | 
|  Dimension | getPreferredSize(JComponent c) | 
| protected  Color | getSelectionBackground()The "selectionBackground" is the color of the text when it is drawn over an unfilled area of the progress bar. | 
| protected  Color | getSelectionForeground()The "selectionForeground" is the color of the text when it is drawn over a filled area of the progress bar. | 
| protected  Point | getStringPlacement(Graphics g,
                   String progressString,
                   int x,
                   int y,
                   int width,
                   int height)Designate the place where the progress string will be drawn. | 
| protected  void | installDefaults() | 
| protected  void | installListeners() | 
|  void | installUI(JComponent c) | 
|  void | paint(Graphics g,
      JComponent c)All purpose paint method that should do the right thing for almost all linear progress bars. | 
| protected  void | paintString(Graphics g,
            int x,
            int y,
            int width,
            int height,
            int amountFull,
            Insets b) | 
| protected  void | setCellLength(int cellLen) | 
| protected  void | setCellSpacing(int cellSpace) | 
| protected  void | uninstallDefaults() | 
| protected  void | uninstallListeners() | 
|  void | uninstallUI(JComponent c) | 
| 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 | 
| Field Detail | 
protected JProgressBar progressBar
protected ChangeListener changeListener
| Constructor Detail | 
public BasicProgressBarUI()
| Method Detail | 
public static ComponentUI createUI(JComponent x)
public void installUI(JComponent c)
installUI in class ComponentUIpublic void uninstallUI(JComponent c)
uninstallUI in class ComponentUIprotected void installDefaults()
protected void uninstallDefaults()
protected void installListeners()
protected void uninstallListeners()
protected Dimension getPreferredInnerHorizontal()
protected Dimension getPreferredInnerVertical()
protected Color getSelectionForeground()
protected Color getSelectionBackground()
protected int getCellLength()
setCellLength(int), 
JProgressBar.isStringPainted()protected void setCellLength(int cellLen)
protected int getCellSpacing()
setCellSpacing(int), 
JProgressBar.isStringPainted()protected void setCellSpacing(int cellSpace)
protected int getAmountFull(Insets b, int width, int height)
public void paint(Graphics g, JComponent c)
paint in class ComponentUIprotected void paintString(Graphics g, int x, int y, int width, int height, int amountFull, Insets b)
protected Point getStringPlacement(Graphics g, String progressString, int x, int y, int width, int height)
public Dimension getPreferredSize(JComponent c)
getPreferredSize in class ComponentUIpublic Dimension getMinimumSize(JComponent c)
getMinimumSize in class ComponentUIpublic Dimension getMaximumSize(JComponent c)
getMaximumSize in class ComponentUI| 
 | JavaTM 2 Platform Std. Ed. v1.3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A.  All Rights Reserved.