public class ProgressManager
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ProgressManager()
Init the progress manager.
|
ProgressManager(double maxProgress,
java.lang.String progressMessage)
Init a new progress manager, setting the maximum progress and progress message.
|
ProgressManager(java.lang.String indeterminateProgressMessage)
Init a new indeterminate progress manager (no notion of iterating progress).
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkIfRunByGUI()
Checks the stacktrace for a call to anything in the weka.gui package.
|
void |
finish()
Close out the progress bar.
|
void |
increment()
Increment the progress bar.
|
void |
setMaxProgress(double maxProgress)
Set the maximum progress value of the progress bar
|
void |
setProgress(double progress)
Set the progress to a specific value
|
void |
setProgressMessage(java.lang.String progressMessage)
Set the progress message to be displayed in the progress bar
|
void |
start()
Show the progress bar and start the timer.
|
public ProgressManager(double maxProgress, java.lang.String progressMessage)
maxProgress
- Maximum progress value (e.g., max number of iterations)progressMessage
- Progress message to displaypublic ProgressManager(java.lang.String indeterminateProgressMessage)
indeterminateProgressMessage
- Progress message to displaypublic ProgressManager()
public boolean checkIfRunByGUI()
public void start()
public void increment()
public void setProgress(double progress)
progress
- Current progresspublic void finish()
public void setMaxProgress(double maxProgress)
maxProgress
- Maximum progress valuepublic void setProgressMessage(java.lang.String progressMessage)
progressMessage
- Progress message