|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object IMPACT.ResultsView
public class ResultsView
Implementation of several methods to allow reading Comma Separating Values (CSV) files. Information read is prepared for table model. It accepts CSV files with separation by space(' '), tab (\t), comma(,) or semicolon(;) characters. Prepared for files with 1000000 rows and 10000 columns
GUIResultsView
,
CSVTableModel
,
csvCharAt(int, java.lang.String)
Field Summary | |
---|---|
static int |
FILE0
Choose File1 |
static int |
FILE1
Choose File2 |
Constructor Summary | |
---|---|
ResultsView()
Constructor for instantiation of files later. |
|
ResultsView(java.lang.String csvfile0,
java.lang.String csvfile1)
Constructor for file1 and file2 instantiation. |
Method Summary | |
---|---|
int |
getColumnCount()
Get number of columns for active file. |
int |
getMaxColumnSize(int col)
Get maximum column size (for active file), between name of column and maximum length of its values. |
int |
getMaxColumnValueSize(int col)
Get maximum size between values of specific column, for active file. |
int |
getRowCount()
Get number of rows for active file. |
int |
getRSColorizeCount()
Get number of sequential columns to colorize. This is obtained from information in a ResultsSummary file. |
java.lang.String[] |
getTableColumnNames()
Get table column names for active file. |
java.lang.Object[][] |
getTableDataValues()
Get table values for active file. |
boolean |
readCSVFile()
Read active CSV file. |
void |
setActiveFile(int whichfile)
Set the file1 for use in all methods in this class. |
void |
setFstFile(java.lang.String csvfile0)
Instantiate File1. |
void |
setSndFile(java.lang.String csvfile1)
Instantiate File2. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FILE0
public static final int FILE1
Constructor Detail |
---|
public ResultsView()
setActiveFile(int)
public ResultsView(java.lang.String csvfile0, java.lang.String csvfile1)
csvfile0
- instantiate file1csvfile1
- instantiate file2setActiveFile(int)
Method Detail |
---|
public void setFstFile(java.lang.String csvfile0)
csvfile0
- absolute path.public void setSndFile(java.lang.String csvfile1)
csvfile1
- absolute path.setActiveFile(int)
public void setActiveFile(int whichfile)
whichfile
- activate file1 if value FILE0; otherwise file2 is active if value FILE1.FILE0
,
FILE1
public int getColumnCount()
setActiveFile(int)
public int getRowCount()
setActiveFile(int)
public java.lang.String[] getTableColumnNames()
setActiveFile(int)
public java.lang.Object[][] getTableDataValues()
setActiveFile(int)
public int getMaxColumnValueSize(int col)
col
- specific column index.
setActiveFile(int)
public int getMaxColumnSize(int col)
col
- specific column index.
setActiveFile(int)
public int getRSColorizeCount()
public boolean readCSVFile()
setActiveFile(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |