|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChartModel
This is the main interface for the models supported by the Chart component.
As a convenience to the user of this model, we extend Iterable<Chartable>
so that the
user can easily iterate over the chartable points that the model contains.
Chart.setModel(ChartModel)
,
Chart.addModel(ChartModel)
Method Summary | |
---|---|
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. |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
String getName()
Chart
, make sure they have different names.
getName
in interface Named
Chartable getPoint(int n)
n
- the index
ChartModel
.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
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |