All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class datarep.common.ProgressBar

java.lang.Object
   |
   +----java.awt.Component
           |
           +----datarep.common.ProgressBar

public class ProgressBar
extends Component
implements AdjustmentListener
This is a non-swing ProgressBar. This is useful if a progress bar is desired, but Swing is not an option.

Version:
1.2
Author:
Data Representations, Inc.

Constructor Index

 o ProgressBar(int, int)
Creates a new progress bar with the specified minimum and maximum values.

Method Index

 o addNotify()
 o adjustmentValueChanged(AdjustmentEvent)
 o getMax()
returns the maximum value
 o getMin()
returns the minimum value
 o getMinimumSize()
gets the size
 o getPreferredSize()
gets the size
 o getValue()
returns the current value
 o main(String[])
test program
 o paint(Graphics)
draws the progress bar
 o removeNotify()
 o setLimits(int, int)
Sets the minimum and maximum values.
 o setPreferredSize(Dimension)
sets the size
 o setPreferredSize(int, int)
 o setValue(int)
Sets the current value.

Constructors

 o ProgressBar
 public ProgressBar(int min,
                    int max)
Creates a new progress bar with the specified minimum and maximum values.

Methods

 o setLimits
 public void setLimits(int min,
                       int max)
Sets the minimum and maximum values.

 o setValue
 public void setValue(int value)
Sets the current value. If the value is below the minimum or above the maximum, it is adjusted accordingly.

 o getMin
 public int getMin()
returns the minimum value

 o getMax
 public int getMax()
returns the maximum value

 o getValue
 public int getValue()
returns the current value

 o addNotify
 public void addNotify()
Overrides:
addNotify in class Component
 o removeNotify
 public void removeNotify()
Overrides:
removeNotify in class Component
 o adjustmentValueChanged
 public void adjustmentValueChanged(AdjustmentEvent e)
 o paint
 public void paint(Graphics g)
draws the progress bar

Overrides:
paint in class Component
 o setPreferredSize
 public void setPreferredSize(int width,
                              int height)
 o setPreferredSize
 public void setPreferredSize(Dimension d)
sets the size

 o getPreferredSize
 public Dimension getPreferredSize()
gets the size

Overrides:
getPreferredSize in class Component
 o getMinimumSize
 public Dimension getMinimumSize()
gets the size

Overrides:
getMinimumSize in class Component
 o main
 public static void main(String args[])
test program


All Packages  Class Hierarchy  This Package  Previous  Next  Index