|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel org.opensourcephysics.display.DataRowModel
public class DataRowModel
Field Summary |
---|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
DataRowModel()
Constructor DataRowModel |
Method Summary | |
---|---|
void |
appendRow(java.lang.Object obj)
Appends a row to this table. |
void |
clear()
Clear the data |
int |
getColumnCount()
Gets the number of columns being shown. |
java.lang.String |
getColumnName(int column)
Gets the name of the specified column. |
int |
getRowCount()
Gets the number of rows. |
java.lang.Object |
getValueAt(int row,
int column)
Gets the value at the given cell. |
boolean |
setColumnNames(int column,
java.lang.String name)
Sets the column names in this table. |
void |
setFirstRowIndex(int index)
Sets the first row's index. |
void |
setMaxPoints(int max)
Sets the maximum number of rows the data can hold |
boolean |
setRowNumberVisible(boolean vis)
Sets the display row number flag. |
void |
setStride(int stride)
Sets the stride between rows. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataRowModel()
Method Detail |
---|
public void setStride(int stride)
tableModel
- stride
- public void setMaxPoints(int max)
public void clear()
public void appendRow(java.lang.Object obj) throws java.lang.IllegalArgumentException
obj
- Object
java.lang.IllegalArgumentException
public boolean setRowNumberVisible(boolean vis)
vis
- true<\code> if table display row number
- Returns:
- true if table display changed
public boolean setColumnNames(int column, java.lang.String name)
column
- the column indexname
-
public void setFirstRowIndex(int index)
index
- public int getColumnCount()
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
column
- the column index
public int getRowCount()
public java.lang.Object getValueAt(int row, int column)
row
- the row indexcolumn
- the column index
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |