|
||||||||||
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(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()
|
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(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
public String toString()
toString
in class Object
|
Generated December 13 2012 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |