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.
-
ProgressBar(int, int)
- Creates a new progress bar with the specified minimum and maximum values.
-
addNotify()
-
-
adjustmentValueChanged(AdjustmentEvent)
-
-
getMax()
- returns the maximum value
-
getMin()
- returns the minimum value
-
getMinimumSize()
- gets the size
-
getPreferredSize()
- gets the size
-
getValue()
- returns the current value
-
main(String[])
- test program
-
paint(Graphics)
- draws the progress bar
-
removeNotify()
-
-
setLimits(int, int)
- Sets the minimum and maximum values.
-
setPreferredSize(Dimension)
- sets the size
-
setPreferredSize(int, int)
-
-
setValue(int)
- Sets the current value.
ProgressBar
public ProgressBar(int min,
int max)
- Creates a new progress bar with the specified minimum and maximum values.
setLimits
public void setLimits(int min,
int max)
- Sets the minimum and maximum values.
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.
getMin
public int getMin()
- returns the minimum value
getMax
public int getMax()
- returns the maximum value
getValue
public int getValue()
- returns the current value
addNotify
public void addNotify()
- Overrides:
- addNotify in class Component
removeNotify
public void removeNotify()
- Overrides:
- removeNotify in class Component
adjustmentValueChanged
public void adjustmentValueChanged(AdjustmentEvent e)
paint
public void paint(Graphics g)
- draws the progress bar
- Overrides:
- paint in class Component
setPreferredSize
public void setPreferredSize(int width,
int height)
setPreferredSize
public void setPreferredSize(Dimension d)
- sets the size
getPreferredSize
public Dimension getPreferredSize()
- gets the size
- Overrides:
- getPreferredSize in class Component
getMinimumSize
public Dimension getMinimumSize()
- gets the size
- Overrides:
- getMinimumSize in class Component
main
public static void main(String args[])
- test program
All Packages Class Hierarchy This Package Previous Next Index