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>

public class NewStarFromObSourcePluginWithSuppliedFileTask extends SwingWorker<Void,Void>
A concurrent task in which a new star from observation source plug-in request (with a supplied file) is handled.
  • 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

      public Void doInBackground()
      Main task. Executed in background thread.
      Specified by:
      doInBackground in class SwingWorker<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:
      done in class SwingWorker<Void,Void>