edu.iastate.metnet.metaomgraph
Class MetaOmGraph.NewProjectWorker
java.lang.Object
edu.iastate.metnet.metaomgraph.SwingWorker
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
projectinfoColumns - the number of info columns in the source filedelimiter - the character used as a delimiter in the source filerowNames - 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)
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