|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
org.norther.tammi.acorn.jfc.AbstractChartModel
public abstract class AbstractChartModel
An extension to abstract table model supporting named rows.
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
AbstractChartModel()
Constructs a new model. |
|
| Method Summary | |
|---|---|
int |
findColumn(Comparable columnKey)
Finds the keyed column. |
int |
findRow(Comparable rowKey)
Finds the keyed row. |
int |
findRow(String rowName)
Finds the named row. |
Comparable |
getColumnKey(int column)
Gets the key of the indexed column. |
Comparable |
getRowKey(int row)
Gets the key of the indexed row. |
String |
getRowName(int row)
Gets a default name for the row using spreadsheet conventions: 1, 2, 3, etc. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt |
| Constructor Detail |
|---|
public AbstractChartModel()
| Method Detail |
|---|
public Comparable getRowKey(int row)
ChartModel
getRowKey in interface ChartModelrow - the index of the row.
public Comparable getColumnKey(int column)
ChartModel
getColumnKey in interface ChartModelcolumn - the index of the column.
public String getRowName(int row)
row cannot be found, returns an empty string.
getRowName in interface ChartModelrow - the row being queried.
row.public int findRow(Comparable rowKey)
rowKey - the row to find.
public int findColumn(Comparable columnKey)
columnKey - the column ro find.
public int findRow(String rowName)
rowName - the row ro find.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||