Class JDPProgressBar

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----JDPProgressBar

public class JDPProgressBar
extends Canvas
Class JDPProgressBar represents progress bar class.


Constructor Index

 o JDPProgressBar()
Creates a new JDPProgressBar.
 o JDPProgressBar(Color)
Creates a new JDPProgressBar with the specified color.
 o JDPProgressBar(int, int, Color)
Creates a new JDPProgressBar with the specified width, height and color.

Method Index

 o getPercent()
Get the percentage value of the progress bar.
 o minimimSize()
 o paint(Graphics)
 o preferredSize()
 o setPercent(int)
Set the percentage value of the progress bar.
 o update(Graphics)

Constructors

 o JDPProgressBar
 public JDPProgressBar()
Creates a new JDPProgressBar.

 o JDPProgressBar
 public JDPProgressBar(int width,
                       int height,
                       Color barColor)
Creates a new JDPProgressBar with the specified width, height and color.

Parameters:
width - the width of the progress bar.
height - the height of the progress bar.
barColor - the color of the progress bar.
 o JDPProgressBar
 public JDPProgressBar(Color barColor)
Creates a new JDPProgressBar with the specified color.

Parameters:
barColor - the color of the progress bar.

Methods

 o setPercent
 public synchronized void setPercent(int percentComplete)
Set the percentage value of the progress bar.

Parameters:
percentComplete - the percentage value of the progress bar.
 o getPercent
 public int getPercent()
Get the percentage value of the progress bar.

Returns:
the percentage value of the progress bar.
 o update
 public synchronized void update(Graphics g)
Overrides:
update in class Component
 o paint
 public synchronized void paint(Graphics g)
Overrides:
paint in class Canvas
 o preferredSize
 public Dimension preferredSize()
Overrides:
preferredSize in class Component
 o minimimSize
 public Dimension minimimSize()