All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class ij.gui.ProgressBar

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Canvas
                   |
                   +----ij.gui.ProgressBar

public class ProgressBar
extends Canvas
The bar is not displayed if the time between the first and second calls to 'show' is less than 50 milliseconds. It is erased when show is passed a percent value >= 1.0.


Constructor Index

 o ProgressBar(int, int)

Method Index

 o erase(Graphics)
 o paint(Graphics)
Paints the canvas in the default background color.
 o preferredSize()
 o show(double)
 o update(Graphics)
Updates the component.

Constructors

 o ProgressBar
 public ProgressBar(int canvasWidth,
                    int canvasHeight)

Methods

 o show
 public void show(double percent)
 o erase
 public void erase(Graphics g)
 o update
 public void update(Graphics g)
Updates the component.

Overrides:
update in class Component
 o paint
 public void paint(Graphics g)
Paints the canvas in the default background color.

Overrides:
paint in class Canvas
 o preferredSize
 public Dimension preferredSize()
Overrides:
preferredSize in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index