public class ProgressBar
extends java.lang.Object
Constructor and Description |
---|
ProgressBar(int max,
java.lang.String name)
Create a progression bar with the specified name and max value.
|
Modifier and Type | Method and Description |
---|---|
void |
finish()
Display the completed progression bar.
|
static void |
main(java.lang.String[] args) |
void |
update(int i)
Set the current progress value to the specified argument.
|
public ProgressBar(int max, java.lang.String name)
max
- the maximum value of progress (i.e. what value equates to 100%
completion)name
- the name of the bar to be displayed while updating.public void update(int i)
i/max
completion.i
- the current value of completion (relative to max)public void finish()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception