|
||||||||||
| 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
org.norther.tammi.acorn.jfc.ChartModelAdapter
public class ChartModelAdapter
A chart model adapter.
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
ChartModelAdapter(ChartModel model)
Constructs a new model. |
|
| Method Summary | |
|---|---|
int |
getColumnCount()
|
protected int |
getColumnIndex(int column)
Gets the unadapted column index. |
Comparable |
getColumnKey(int column)
Gets the key of the indexed column. |
String |
getColumnName(int column)
|
protected ChartModel |
getModel()
Gets the chart model. |
int |
getRowCount()
|
protected int |
getRowIndex(int row)
Gets the unadapted row index. |
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. |
Object |
getValueAt(int row,
int column)
|
boolean |
isCellEditable(int row,
int column)
|
void |
setValueAt(Object value,
int row,
int column)
|
| Methods inherited from class org.norther.tammi.acorn.jfc.AbstractChartModel |
|---|
findColumn, findRow, findRow |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener |
| 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, removeTableModelListener |
| Constructor Detail |
|---|
public ChartModelAdapter(ChartModel model)
model - the model.| Method Detail |
|---|
public int getRowCount()
getRowCount in interface TableModelpublic int getColumnCount()
getColumnCount in interface TableModelpublic Comparable getRowKey(int row)
ChartModel
getRowKey in interface ChartModelgetRowKey in class AbstractChartModelrow - the index of the row.
public Comparable getColumnKey(int column)
ChartModel
getColumnKey in interface ChartModelgetColumnKey in class AbstractChartModelcolumn - the index of the column.
public String getRowName(int row)
AbstractChartModelrow cannot be found, returns an empty string.
getRowName in interface ChartModelgetRowName in class AbstractChartModelrow - the row being queried.
row.public String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModel
public boolean isCellEditable(int row,
int column)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModel
public Object getValueAt(int row,
int column)
getValueAt in interface TableModel
public void setValueAt(Object value,
int row,
int column)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelprotected ChartModel getModel()
protected int getRowIndex(int row)
row - the adapted row index.
protected int getColumnIndex(int column)
column - the adapted column index.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||