workerThreads
Class ParallelCoordinatesChartCreationThread

java.lang.Object
  extended by javax.swing.SwingWorker
      extended by workerThreads.ParallelCoordinatesChartCreationThread
All Implemented Interfaces:
java.lang.Runnable, java.util.concurrent.Future, java.util.concurrent.RunnableFuture

public class ParallelCoordinatesChartCreationThread
extends javax.swing.SwingWorker

A thread that runs in the background to create a new parallel coordinates chart. This takes away this potentially long-running task from the EDT.
At the same time a ProgressMonitor is used to show progress, if required.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.SwingWorker
javax.swing.SwingWorker.StateValue
 
Constructor Summary
ParallelCoordinatesChartCreationThread(Main mainWindow, javax.swing.ProgressMonitor progressMonitor)
          Instantiates a new chart creation thread.
 
Method Summary
 java.lang.Object doInBackground()
           
 
Methods inherited from class javax.swing.SwingWorker
addPropertyChangeListener, cancel, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, removePropertyChangeListener, run
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParallelCoordinatesChartCreationThread

public ParallelCoordinatesChartCreationThread(Main mainWindow,
                                              javax.swing.ProgressMonitor progressMonitor)
Instantiates a new chart creation thread.

Parameters:
mainWindow - The main window
progressMonitor - The progress monitor
Method Detail

doInBackground

public java.lang.Object doInBackground()
Specified by:
doInBackground in class javax.swing.SwingWorker