Package org.aavso.tools.vstar.ui.task
Class NewStarFromObSourcePluginWithSuppliedFileTask
java.lang.Object
javax.swing.SwingWorker<Void,Void>
org.aavso.tools.vstar.ui.task.NewStarFromObSourcePluginWithSuppliedFileTask
- All Implemented Interfaces:
Runnable,Future<Void>,RunnableFuture<Void>
A concurrent task in which a new star from observation source plug-in request
(with a supplied file) is handled.
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.SwingWorker
SwingWorker.StateValue -
Constructor Summary
ConstructorsConstructorDescriptionNewStarFromObSourcePluginWithSuppliedFileTask(ObservationSourcePluginBase obSourcePlugin, File inputFile, boolean isAdditive) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCreate observation table and plot models from an observation source plug-in.Main task.voiddone()Executed in event dispatching thread.Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
-
Constructor Details
-
NewStarFromObSourcePluginWithSuppliedFileTask
public NewStarFromObSourcePluginWithSuppliedFileTask(ObservationSourcePluginBase obSourcePlugin, File inputFile, boolean isAdditive) Constructor.- Parameters:
obSourcePlugin- The plugin that will be used to obtain observations.inputFile- The file to used as input.isAdditive- Is this an additive load?
-
-
Method Details
-
doInBackground
Main task. Executed in background thread.- Specified by:
doInBackgroundin classSwingWorker<Void,Void>
-
createObservationArtefacts
protected void createObservationArtefacts()Create observation table and plot models from an observation source plug-in. -
done
public void done()Executed in event dispatching thread.- Overrides:
donein classSwingWorker<Void,Void>
-