public interface TableFeature extends ResultBaseFeature
Modifier and Type | Method and Description |
---|---|
void |
addColumns(java.lang.String[] headers,
double[][] realData)
Add columns with given headers and real data.
|
void |
addColumns(java.lang.String[] headers,
double[][] realData,
double[][] imagData)
Add columns with given headers and real and imaginary data.
|
void |
addRow(double[] realData)
Add a row with real data.
|
void |
addRow(double[] realData,
double[] imagData)
Add a row with real and imaginary data.
|
void |
clearTableData()
Remove all data in the table.
|
PropFeatureList<PropFeature> |
feature()
Returns the list of features in this table.
|
java.lang.String[] |
getColumnHeaders()
Get the table's column headers.
|
double[][] |
getFilledImag()
Get the imaginary data in the table on the filled format.
|
double[][] |
getFilledReal()
Get the real data in the table on the filled format.
|
double[][] |
getImag()
Get the imaginary data in the table.
|
double[] |
getImagRow(int index)
Get the imaginary data in a row (0-index).
|
int |
getNRows()
Get the number of rows in the table.
|
double[][] |
getReal()
Get the real data in the table.
|
double[] |
getRealRow(int index)
Get the real data in a row (0-index).
|
java.lang.String[][] |
getTableData(boolean fullPrecision)
Get the table data as a string matrix, with or without full precision.
|
java.lang.String[] |
getTableRow(int index,
boolean fullPrecision)
Get the table data of one row as a string array.
|
void |
importData(java.lang.String filename)
Fill the table with real or complex data from a file.
|
boolean |
isComplex()
Check if the table has allocated complex data.
|
void |
loadFile(java.lang.String path)
Loads from a file.
|
void |
loadFile(java.lang.String path,
java.lang.String sheet,
java.lang.String range)
Loads from an Excel-file with a specified range to read, or a cell to
start from, in the specified sheet.
|
void |
removeColumn(int index)
Remove a column with a given index, if it exists.
|
void |
removeRow(int index)
Remove a row with a given index, if it exists.
|
void |
save(java.lang.String filename)
Save the table data in full precision to a text file.
|
void |
save(java.lang.String filename,
boolean fullPrecision)
Save the table data to a text file.
|
void |
saveFile(java.lang.String path)
Saves to a file.
|
void |
saveFile(java.lang.String path,
java.lang.String sheet,
java.lang.String range,
boolean includeHeaders,
boolean overwrite)
Saves to an Excel-file in a specified range, or at a cell to start
from, in a specified sheet.
|
void |
setColumnHeaders(java.lang.String[] value)
Set the table's column headers, but leave the table's data unchanged.
|
void |
setTableData(double[][] realData)
Set the real data in the table.
|
void |
setTableData(double[][] realData,
double[][] imagData)
Set the real and imaginary data in the table.
|
getAllowedPropertyValues, getBoolean, getBoolean, getBoolean, getBooleanArray, getBooleanMatrix, getDouble, getDouble, getDouble, getDoubleArray, getDoubleMatrix, getEntryKeyIndex, getEntryKeys, getInt, getInt, getInt, getIntArray, getIntMatrix, getReferenceArray, getString, getString, getString, getString, getStringArray, getStringMatrix, getType, getValueType, hasProperty, hasSelection, move, properties, remove, selection, set, set, set, set, set, set, set, set, set, set, set, set, setEntry, setEntry, setEntry, setEntry, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex, setIndex
selection
active, author, author, comments, comments, dateCreated, dateModified, docMarker, docMarker, help, help, icon, isactive, isActive, label, label, lastModifiedBy, model, model, name, name, resetAuthor, scope, tag, tag, timeCreated, timeModified, version, version
getContainer, getDisplayString
void addColumns(java.lang.String[] headers, double[][] realData)
headers
- Vector of header texts.realData
- Matrix of real data.void addColumns(java.lang.String[] headers, double[][] realData, double[][] imagData)
headers
- Vector of header texts.realData
- Matrix of real data.imagData
- Matrix of imaginary data.void addRow(double[] realData)
realData
- Matrix of real data.void addRow(double[] realData, double[] imagData)
realData
- Matrix of real data.imagData
- Matrix of imaginary data.void clearTableData()
PropFeatureList<PropFeature> feature()
java.lang.String[] getColumnHeaders()
double[][] getFilledImag()
double[][] getFilledReal()
double[][] getImag()
all
format.double[] getImagRow(int index)
index
- Row index.int getNRows()
double[][] getReal()
all
format.double[] getRealRow(int index)
index
- Row index.java.lang.String[][] getTableData(boolean fullPrecision)
fullPrecision
- true
for full precision.java.lang.String[] getTableRow(int index, boolean fullPrecision)
index
- Row index.fullPrecision
- true
for full precision.void importData(java.lang.String filename)
filename
- File name.boolean isComplex()
true
if complex.void loadFile(java.lang.String path)
path
- Path to file.void loadFile(java.lang.String path, java.lang.String sheet, java.lang.String range)
path
- Path to file.sheet
- The Excel-sheet to use.range
- The range, or a starting cell.void removeColumn(int index)
index
- Column index.void removeRow(int index)
index
- Row index.void save(java.lang.String filename)
filename
- File name.void save(java.lang.String filename, boolean fullPrecision)
filename
- File name.fullPrecision
- true
for full precision.void saveFile(java.lang.String path)
path
- Path to file.void saveFile(java.lang.String path, java.lang.String sheet, java.lang.String range, boolean includeHeaders, boolean overwrite)
path
- Path to file.sheet
- The Excel-sheet to use.range
- The range, or a starting cell.includeHeaders
- True if column headers are to be written.overwrite
- True if an existing file is to be overwritten, or if an error should
be cast in that instance.void setColumnHeaders(java.lang.String[] value)
value
- The column headers.void setTableData(double[][] realData)
realData
- Matrix of real table data.void setTableData(double[][] realData, double[][] imagData)
realData
- Matrix of real table data.imagData
- Matrix of imaginary table data.