public class SPProgressBarPlug
extends java.lang.Object
Constructor and Description |
---|
SPProgressBarPlug() |
Modifier and Type | Method and Description |
---|---|
static void |
addProgressBar(lev.gui.LProgressBarInterface progressBar)
Adds a progress bar to the list of bars to be updated with SkyProc
import/export data.
|
static void |
done()
Sets the current value to the max value (100%).
|
static int |
getBar() |
static int |
getMax() |
static void |
incrementBar()
Increments the progress bar one unit.
|
static void |
pause(boolean on)
Block the progress bar from updating.
|
static boolean |
paused() |
static void |
reset()
Resets the progress bar to zero of max.
|
static void |
setBar(int in) |
static void |
setMax(int in) |
static void |
setMax(int in,
java.lang.String status) |
static void |
setStatus(java.lang.String status) |
static void |
setStatusNumbered(int cur,
int max,
java.lang.String status)
Updates the progress bar status text to display:
([cur]/[max]) [status] |
static void |
setStatusNumbered(java.lang.String status)
Updates the progress bar status text to display the current step in the
form of:
([cur]/[max]) [status] |
public static void addProgressBar(lev.gui.LProgressBarInterface progressBar)
progressBar
- public static void setMax(int in)
in
- Value to set as the max unit value of the progress bar.public static void setMax(int in, java.lang.String status)
in
- Value to set as the max unit value of the progress bar.status
- String to set as the status of the progress bar.public static void setStatus(java.lang.String status)
status
- String to set as the status of the progress bar.public static void setStatusNumbered(int cur, int max, java.lang.String status)
cur
- max
- status
- public static void setStatusNumbered(java.lang.String status)
status
- public static void incrementBar()
public static void reset()
public static void setBar(int in)
in
- value to set the progress bar at.public static int getBar()
public static int getMax()
public static void pause(boolean on)
on
- public static boolean paused()
public static void done()