|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectli.netcat.chart.data.AbstractChartModelAdapter
li.netcat.chart.data.ColumnLegendModel
Implementation of a legend model that uses the names of the columns as text for the legend.
Constructor Summary | |
ColumnLegendModel()
Constructs a new and empty ColumnLegendModel . |
Method Summary | |
int |
getColumnIndex(int entryIndex)
Returns the index of the column for a given entry index. |
int |
getEntryCount()
Returns the number of entries in this LegendModel . |
int |
getRowIndex(int entryIndex)
Returns the index of the row for a given entry index. |
java.lang.String |
getText(int entryIndex)
Returns the text for a given entry index. |
void |
invalidate()
Invoked when the underlying model changes. |
Methods inherited from class li.netcat.chart.data.AbstractChartModelAdapter |
getChartModel, setChartModel |
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.data.ChartModelAdapter |
getChartModel, setChartModel |
Constructor Detail |
public ColumnLegendModel()
ColumnLegendModel
.
Method Detail |
public int getEntryCount()
LegendModel
LegendModel
.
getEntryCount
in interface LegendModel
LegendModel
.public java.lang.String getText(int entryIndex)
LegendModel
getText
in interface LegendModel
entryIndex
- The index of the entry, it must be >=0 and <getEntryCount()
.
null
.public int getRowIndex(int entryIndex)
LegendModel
getRowIndex
in interface LegendModel
entryIndex
- The index of the entry, it must be >=0 and <getEntryCount()
.
public int getColumnIndex(int entryIndex)
LegendModel
getColumnIndex
in interface LegendModel
entryIndex
- The index of the entry, it must be >=0 and <getEntryCount()
.
public void invalidate()
AbstractChartModelAdapter
invalidate
in class AbstractChartModelAdapter
|
ChartCat 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |