|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 ChartModel
listener
- the listener that will receive eventspublic void removeChartModelListener(ChartModelListener listener)
ChartModel
removeChartModelListener
in interface ChartModel
listener
- the listener that will no longer receive eventsprotected void fireModelChanged()
public void chartModelChanged()
ChartModelListener
chartModelChanged
in interface ChartModelListener
public void update()
public String getName()
ChartModel
Chart
, make sure they have different names.
getName
in interface ChartModel
getName
in interface Named
public Chartable getPoint(int n)
ChartModel
getPoint
in interface ChartModel
n
- the index
ChartModel
.public int getPointCount()
ChartModel
getPointCount
in interface ChartModel
public boolean isCyclical()
ChartModel
isCyclical
in interface ChartModel
public Iterator<Chartable> iterator()
iterator
in interface Iterable<Chartable>
public Annotation getAnnotation(int n)
AnnotationModel
getAnnotation
in interface AnnotationModel
n
- the index.
public int getAnnotationCount()
AnnotationModel
getAnnotationCount
in interface AnnotationModel
public boolean isAnnotationsVisible()
AnnotationModel
isAnnotationsVisible
in interface AnnotationModel
public void setAnnotationsVisible(boolean visible)
AnnotationModel
setAnnotationsVisible
in interface AnnotationModel
visible
- 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 |