public interface ChartModel extends Named, Iterable<Chartable>
Iterable<Chartable>
so that the
user can easily iterate over the chartable points that the model contains.Modifier and Type | Method and Description |
---|---|
void |
addChartModelListener(ChartModelListener listener)
Register the listener's interest in this chart model.
|
String |
getName()
The name of a ChartModel is important, as different chart models are assumed to have different names.
|
Chartable |
getPoint(int n)
Gets the nth point.
|
int |
getPointCount()
Gets the number of points in the data set
|
boolean |
isCyclical()
Should a line be drawn from the last to the first point?
|
void |
removeChartModelListener(ChartModelListener listener)
De-register the listener's interest in this chart model.
|
String getName()
Chart
, make sure they have different names.Chartable getPoint(int n)
n
- the indexChartModel
.int getPointCount()
boolean isCyclical()
void addChartModelListener(ChartModelListener listener)
listener
- the listener that will receive eventsvoid removeChartModelListener(ChartModelListener listener)
listener
- the listener that will no longer receive events