edu.iastate.metnet.metaomgraph
Class MetaOmGraph.NewProjectWorker

java.lang.Object
  extended by edu.iastate.metnet.metaomgraph.SwingWorker
      extended by edu.iastate.metnet.metaomgraph.MetaOmGraph.NewProjectWorker
Enclosing class:
MetaOmGraph

public static class MetaOmGraph.NewProjectWorker
extends SwingWorker

Worker that constructs a new project. This is implemented as a separate thread so that the progress monitor will work.


Constructor Summary
MetaOmGraph.NewProjectWorker(java.io.File source, int infoColumns, char delimiter, java.lang.Object[][] rowNames, java.lang.Object[] colNames, java.io.File extInfoFile, boolean ignoreConsecutiveDelimiters, java.lang.Double blankValue)
          Constructor.
 
Method Summary
 java.lang.Object construct()
          Creates the project.
 void finished()
          If the project was created successfully, this sets up the extra information (row names, column names, extended info) and displays the project table.
 
Methods inherited from class edu.iastate.metnet.metaomgraph.SwingWorker
get, getValue, interrupt, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaOmGraph.NewProjectWorker

public MetaOmGraph.NewProjectWorker(java.io.File source,
                                    int infoColumns,
                                    char delimiter,
                                    java.lang.Object[][] rowNames,
                                    java.lang.Object[] colNames,
                                    java.io.File extInfoFile,
                                    boolean ignoreConsecutiveDelimiters,
                                    java.lang.Double blankValue)
Constructor.

Parameters:
source - the delimited text file that contains the data for this project
infoColumns - the number of info columns in the source file
delimiter - the character used as a delimiter in the source file
rowNames - the names of the rows (can be null). Replaces any row names in the source file if non-null.
colNames - the names of the columns (can be null). Replaces any column names in the source file if non-null.
extInfoFile - an XML file that contains extended info for the new project (can be null)
Method Detail

construct

public java.lang.Object construct()
Creates the project.

Specified by:
construct in class SwingWorker

finished

public void finished()
If the project was created successfully, this sets up the extra information (row names, column names, extended info) and displays the project table. Otherwise, it removes all traces of the attempted operation.

Overrides:
finished in class SwingWorker