public class GnuplotTask
extends javax.swing.SwingWorker<java.lang.String,java.lang.Void>
GUI| Constructor and Description |
|---|
GnuplotTask(java.lang.String location,
java.lang.String plotsfl,
int pmlen)
Initialize Gnuplot Task.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
doInBackground() |
protected void |
done() |
int |
getCurrent()
Get current value for display progress bar and/or monitor.
It returns only the value that is greater than the previous one. |
java.lang.String |
getMessage()
Get formated message of elapsed time since beginning of execution.
|
java.lang.String |
getOutput()
Get output resulting from terminated execution.
|
boolean |
gotError()
Verify if execution terminated with an error.
|
boolean |
isdone()
Verify if task has terminated.
|
void |
stop()
Stop Gnuplot execution.
|
public GnuplotTask(java.lang.String location,
java.lang.String plotsfl,
int pmlen)
location - Gnuplot executable absolute path location.plotsfl - gnuplot script file absolute path.pmlen - maximum value of progress bar and/or monitor.protected java.lang.String doInBackground()
doInBackground in class javax.swing.SwingWorker<java.lang.String,java.lang.Void>protected void done()
done in class javax.swing.SwingWorker<java.lang.String,java.lang.Void>public boolean isdone()
public boolean gotError()
public int getCurrent()
public java.lang.String getMessage()
public java.lang.String getOutput()
public void stop()