Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
ProgressBar Class Reference
Inheritance diagram for ProgressBar:

Public Member Functions

 ProgressBar (int canvasWidth, int canvasHeight)
 
void show (int currentValue, int finalValue)
 
void show (double percent)
 
void update (Graphics g)
 
void paint (Graphics g)
 
Dimension getPreferredSize ()
 

Detailed Description

This is the progress bar that is displayed in the lower right hand corner of the ImageJ window. Use one of the static IJ.showProgress() methods to display and update the progress bar.

Definition at line 9 of file ProgressBar.java.

Constructor & Destructor Documentation

ProgressBar ( int  canvasWidth,
int  canvasHeight 
)
inline

This constructor is called once by ImageJ at startup.

Definition at line 27 of file ProgressBar.java.

Member Function Documentation

void show ( int  currentValue,
int  finalValue 
)
inline

Updates the progress bar, where the length of the bar is set to (currentValue+1)/finalValue of the maximum bar length. The bar is erased if currentValue>=finalValue. Does nothing if the ImageJ window is not present.

Definition at line 55 of file ProgressBar.java.

void show ( double  percent)
inline

Updates the progress bar. It is not displayed if the time between the first and second calls to 'show' is less than 30 milliseconds. It is erased when show is passed a percent value >= 1.0.

Definition at line 69 of file ProgressBar.java.


The documentation for this class was generated from the following file: