|
ChartCat 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectli.netcat.chart.ChartModelSupport
li.netcat.chart.AbstractChartModel
Possible super class of a custom chart model. It manages the list of
chart model listeners and has basic implementations of some members
of the ChartModel interface.
Subclasses must at least implement the following methods:
getRowCount()getColumnCount()getValueAt(int, int)public void fireChartModelEvent(Object source) whenever your
model changes.
| Constructor Summary | |
AbstractChartModel()
|
|
| Method Summary | |
java.lang.String |
getTextAt(int rowIndex,
int columnIndex)
Returns the string representation of the value at the given index. |
java.lang.String |
getTextForColumn(int columnIndex)
Returns "Column "+columnIndex. |
java.lang.String |
getTextForKey(java.lang.String key)
Returns null. |
java.lang.String |
getTextForRow(int rowIndex)
Returns "Row "+rowIndex. |
| Methods inherited from class li.netcat.chart.ChartModelSupport |
addChartModelListener, fireChartModelEvent, removeChartModelListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface li.netcat.chart.ChartModel |
addChartModelListener, getColumnCount, getRowCount, getValueAt, removeChartModelListener |
| Constructor Detail |
public AbstractChartModel()
| Method Detail |
public java.lang.String getTextAt(int rowIndex,
int columnIndex)
getTextAt in interface ChartModelrowIndex - The index of the row, it must be >= 0 and < getRowCount().columnIndex - The index of the column, it must be >= 0 and < getColumnCount().
toString() method.public java.lang.String getTextForRow(int rowIndex)
getTextForRow in interface ChartModelrowIndex - The index of the row of the underlying cell.
public java.lang.String getTextForColumn(int columnIndex)
getTextForColumn in interface ChartModelcolumnIndex - The index of the column of the underlying cell.
public java.lang.String getTextForKey(java.lang.String key)
null.
getTextForKey in interface ChartModelkey - The key or name of the text. There are no predefined values.
null.
|
ChartCat 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||