public class PreviewProcessingTask extends AbstractProcessingTask
IOperatorGUI. It cannot be processed in virtual mode.SwingWorker.StateValue| Modifier and Type | Field and Description |
|---|---|
private static org.apache.log4j.Logger |
logger |
childTask, duration, headless, operator, operatorGUI, parentTask, startTime, virtual, workPackage| Constructor and Description |
|---|
PreviewProcessingTask()
Default constructor.
|
PreviewProcessingTask(IWorkPackage wp)
This constructor sets the required variables directly.
|
PreviewProcessingTask(IWorkPackage wp,
IOperatorGUI opGUI)
This constructor sets the required variables directly.
|
| Modifier and Type | Method and Description |
|---|---|
protected IResult |
doInBackground()
This method must be implemented by all subclasses.
|
protected void |
done()
This method is called after the
doInBackground() method and
must be implemented by all subclasses. |
getChildTask, getOperator, getOperatorGUI, getParentTask, getWorkPackage, isHeadless, isVirtual, process, setChildTask, setHeadless, setOperator, setOperatorGUI, setParentTask, setVirtual, setWorkPackageaddPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, publish, removePropertyChangeListener, run, setProgresspublic PreviewProcessingTask()
public PreviewProcessingTask(IWorkPackage wp)
headless will be
set to true. This constructor shall be used when no GUI is
needed to be updated. virtual is always false.wp - the work package containing operator and parameterspublic PreviewProcessingTask(IWorkPackage wp, IOperatorGUI opGUI)
headless will be set to false. This constructor
shall be used when a GUI is needed to be updated, or the GUI contains
elements for custom processing. virtual is always
false.wp - the work package containing operator and parametersopGUI - GUI of the containing operatorprotected IResult doInBackground() throws Exception
AbstractProcessingTaskdoInBackground in class AbstractProcessingTaskget().ExceptionSwingWorker.doInBackground()protected void done()
AbstractProcessingTaskdoInBackground() method and
must be implemented by all subclasses. It is called too, when the
SwingWorker is cancelled.done in class AbstractProcessingTaskCopyright © 2009–2017 Helmut Ahammer, Philipp Kainz. All rights reserved.