|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.chart.model.AnnotatedChartModelAdapter
public class AnnotatedChartModelAdapter
A class that accepts a regular ChartModel and exposes the interface of an Annotated ChartModel
| Constructor Summary | |
|---|---|
AnnotatedChartModelAdapter(ChartModel delegate)
|
|
| Method Summary | |
|---|---|
void |
addChartModelListener(ChartModelListener listener)
Register the listener's interest in this chart model. |
void |
chartModelChanged()
Call-back method to notify the listener that the chart model has changed |
protected void |
fireModelChanged()
|
Annotation |
getAnnotation(int n)
Gets the nth annotation. |
int |
getAnnotationCount()
Returns the number of annotations |
ChartModel |
getDelegate()
|
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 |
isAnnotationsVisible()
Use this method to discover whether annotations should be shown or hidden. |
boolean |
isCyclical()
Should a line be drawn from the last to the first point? |
Iterator<Chartable> |
iterator()
|
void |
removeChartModelListener(ChartModelListener listener)
De-register the listener's interest in this chart model. |
void |
setAnnotationsVisible(boolean visible)
Specify whether annotations should be shown |
void |
setDelegate(ChartModel newDelegate)
|
void |
update()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotatedChartModelAdapter(ChartModel delegate)
| Method Detail |
|---|
public ChartModel getDelegate()
public void setDelegate(ChartModel newDelegate)
public void addChartModelListener(ChartModelListener listener)
ChartModel
addChartModelListener in interface ChartModellistener - the listener that will receive eventspublic void removeChartModelListener(ChartModelListener listener)
ChartModel
removeChartModelListener in interface ChartModellistener - the listener that will no longer receive eventsprotected void fireModelChanged()
public void chartModelChanged()
ChartModelListener
chartModelChanged in interface ChartModelListenerpublic void update()
public String getName()
ChartModelChart, make sure they have different names.
getName in interface ChartModelgetName in interface Namedpublic Chartable getPoint(int n)
ChartModel
getPoint in interface ChartModeln - the index
ChartModel.public int getPointCount()
ChartModel
getPointCount in interface ChartModelpublic boolean isCyclical()
ChartModel
isCyclical in interface ChartModelpublic Iterator<Chartable> iterator()
iterator in interface Iterable<Chartable>public Annotation getAnnotation(int n)
AnnotationModel
getAnnotation in interface AnnotationModeln - the index.
public int getAnnotationCount()
AnnotationModel
getAnnotationCount in interface AnnotationModelpublic boolean isAnnotationsVisible()
AnnotationModel
isAnnotationsVisible in interface AnnotationModelpublic void setAnnotationsVisible(boolean visible)
AnnotationModel
setAnnotationsVisible in interface AnnotationModelvisible - whether annotations should be shown
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||