|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
org.simulator.math.odes.MultiTable.Block
public class MultiTable.Block
A MultiTable.Block is a data structure with a two-dimensional double array
of actual data together with identifiers for each column.
| Nested Class Summary | |
|---|---|
class |
MultiTable.Block.Column
A column of the MultiTable.Block matrix. |
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Method Summary | |
|---|---|
boolean |
containsColumn(java.lang.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(java.lang.String identfier)
Provides access to the MultiTable.Block.Column corresponding to the given
identifier. |
int |
getColumnCount()
|
java.lang.String |
getColumnIdentifier(int column)
|
java.lang.String |
getColumnName(int column)
|
java.lang.String[] |
getColumnNames()
|
double[][] |
getData()
|
java.lang.String[] |
getIdentifiers()
|
java.lang.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. |
java.lang.Double |
getValueAt(int rowIndex,
int columnIndex)
|
boolean |
isSetData()
Checks whether or not a data matrix has been defined in this object |
void |
setColumnNames(java.lang.String[] columnNames)
|
void |
setData(double[][] data)
|
void |
setIdentifiers(java.lang.String[] identifiers)
|
void |
setName(java.lang.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(java.lang.Object aValue,
int rowIndex,
int columnIndex)
|
java.lang.String |
toString()
|
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean containsColumn(java.lang.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(java.lang.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 java.lang.String getColumnIdentifier(int column)
column -
public java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelpublic java.lang.String[] getColumnNames()
public double[][] getData()
public java.lang.String[] getIdentifiers()
public java.lang.String getName()
public double[] getRow(int rowIndex)
rowIndex - The index of the row to be delivered.
public int getRowCount()
public double[] getTimePoints()
public java.lang.Double getValueAt(int rowIndex,
int columnIndex)
public boolean isSetData()
public void setColumnNames(java.lang.String[] columnNames)
columnNames - the columnNames to setpublic void setData(double[][] data)
data - the data to setpublic void setIdentifiers(java.lang.String[] identifiers)
identifiers - the identifiers to setpublic void setName(java.lang.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(java.lang.Object aValue,
int rowIndex,
int columnIndex)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||