public interface IProgressBar
increment()
or multiple units can be reported by calling increment(int)
. When
the task is finished, the reporter should call the finish()
method.Modifier and Type | Method and Description |
---|---|
void |
finish()
Stops the progress bar and prints the total time that the progress bar ran.
|
int |
getCount()
Returns the current state of the progress bar, that is, the number of
units of progress that have been reported to it.
|
java.util.Date |
getEndTime()
Returns the date and time on which this progress bar was finished.
|
int |
getExpected()
Returns the expected number of units of progress.
|
int |
getExpectedTicks()
Returns the expected number of ticks.
|
java.util.Date |
getStartTime()
Returns the date and time on which this progress bar was started.
|
double |
getStepSize()
Returns the number of units of progress that are represented by one tick.
|
int |
getTickCount()
Returns the number of current progress bar ticks that have been used.
|
void |
increment()
Increments the progress bar by 1.
|
void |
increment(int amount)
Increments the progress bar by a given amount.
|
int getCount()
int getTickCount()
int getExpected()
int getExpectedTicks()
double getStepSize()
java.util.Date getStartTime()
java.util.Date getEndTime()
null
.null
if not yet finished.void increment()
void increment(int amount)
amount
- amount by which the progress bar will be incrementedvoid finish()
Copyright © 2011 Massachusetts Institute of Technology. All Rights Reserved.