Class JDPProgressBar
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Canvas
|
+----JDPProgressBar
- public class JDPProgressBar
- extends Canvas
Class JDPProgressBar represents progress bar class.
-
JDPProgressBar()
- Creates a new JDPProgressBar.
-
JDPProgressBar(Color)
- Creates a new JDPProgressBar with the specified color.
-
JDPProgressBar(int, int, Color)
- Creates a new JDPProgressBar with the specified width, height and color.
-
getPercent()
- Get the percentage value of the progress bar.
-
minimimSize()
-
-
paint(Graphics)
-
-
preferredSize()
-
-
setPercent(int)
- Set the percentage value of the progress bar.
-
update(Graphics)
-
JDPProgressBar
public JDPProgressBar()
- Creates a new JDPProgressBar.
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.
JDPProgressBar
public JDPProgressBar(Color barColor)
- Creates a new JDPProgressBar with the specified color.
- Parameters:
- barColor - the color of the progress bar.
setPercent
public synchronized void setPercent(int percentComplete)
- Set the percentage value of the progress bar.
- Parameters:
- percentComplete - the percentage value of the progress bar.
getPercent
public int getPercent()
- Get the percentage value of the progress bar.
- Returns:
- the percentage value of the progress bar.
update
public synchronized void update(Graphics g)
- Overrides:
- update in class Component
paint
public synchronized void paint(Graphics g)
- Overrides:
- paint in class Canvas
preferredSize
public Dimension preferredSize()
- Overrides:
- preferredSize in class Component
minimimSize
public Dimension minimimSize()