public class MultiTable.Block extends AbstractTableModel
MultiTable.Block
is a data structure with a two-dimensional double array of actual data together
with identifiers for each column.Modifier and Type | Class and Description |
---|---|
class |
MultiTable.Block.Column
A column of the
MultiTable.Block matrix. |
Modifier and Type | Method and Description |
---|---|
boolean |
containsColumn(String id)
Checks whether or not this
MultiTable.Block contains a MultiTable.Block.Column with the given
identifier. |
MultiTable.Block.Column |
getColumn(int columnIndex)
Grants access to the specified column.
|
MultiTable.Block.Column |
getColumn(String identfier)
Provides access to the
MultiTable.Block.Column corresponding to the given identifier. |
int |
getColumnCount() |
String |
getColumnIdentifier(int column) |
String |
getColumnName(int column) |
String[] |
getColumnNames() |
double[][] |
getData() |
String[] |
getIdentifiers() |
String |
getName() |
double[] |
getRow(int rowIndex)
Delivers the given row of the data matrix as an array of doubles only, i.e., no time points.
|
int |
getRowCount() |
double[] |
getTimePoints()
Access to the time points of the overall table.
|
Double |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isSetData()
Checks whether or not a data matrix has been defined in this object
|
void |
setColumnNames(String[] columnNames) |
void |
setData(double[][] data) |
void |
setIdentifiers(String[] identifiers) |
void |
setName(String name) |
void |
setRowData(int rowIndex,
double[] array)
Sets the given array as the new row in the given position of the data matrix, but requires
that the number of values in the array equal the number of columns in the matrix.
|
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
String |
toString() |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener
public boolean containsColumn(String id)
MultiTable.Block
contains a MultiTable.Block.Column
with the given
identifier.id
- public MultiTable.Block.Column getColumn(int columnIndex)
columnIndex
- The index of the column (excluding the time column)MultiTable.Block.Column
with the given index in the data matrix, i.e., the time
column is excluded.public MultiTable.Block.Column getColumn(String identfier)
MultiTable.Block.Column
corresponding to the given identifier.identfier
- The identifier of the MultiTable.Block.Column
to be queried.MultiTable.Block.Column
object for convenient access to the data in the desired table
column.public int getColumnCount()
public String getColumnIdentifier(int column)
column
- public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public String[] getColumnNames()
public double[][] getData()
public String[] getIdentifiers()
public String getName()
public double[] getRow(int rowIndex)
rowIndex
- The index of the row to be delivered.public int getRowCount()
public double[] getTimePoints()
public Double getValueAt(int rowIndex, int columnIndex)
public boolean isSetData()
public void setColumnNames(String[] columnNames)
columnNames
- the columnNames to setpublic void setData(double[][] data)
data
- the data to setpublic void setIdentifiers(String[] identifiers)
identifiers
- the identifiers to setpublic void setName(String name)
name
- public void setRowData(int rowIndex, double[] array)
rowIndex
- The index of the row to be replaced by the new array.array
- An array of length getColumnCount()
- 1.public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
setValueAt
in class AbstractTableModel
Copyright © 2007–2021. All rights reserved.