|
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.AbstractDelegatingChartModel
public abstract class AbstractDelegatingChartModel
An abstract superclass that implements many of the methods necessary in a delegating ChartModel.
| Constructor Summary | |
|---|---|
AbstractDelegatingChartModel()
|
|
AbstractDelegatingChartModel(ChartModel... delegates)
|
|
AbstractDelegatingChartModel(Collection<ChartModel> delegates)
|
|
| 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 |
boolean |
equals(Object obj)
|
protected void |
fireModelChanged()
Notify registered listeners that the chart model has changed |
abstract Annotation |
getAnnotation(int n)
Gets the nth annotation. |
abstract int |
getAnnotationCount()
Returns the number of annotations |
AnnotatedChartModel |
getDelegate()
|
AnnotatedChartModel |
getDelegate(int i)
|
AnnotatedChartModel[] |
getDelegates()
|
String |
getName()
Returns the name of the model. |
abstract Chartable |
getPoint(int n)
Gets the nth point. |
abstract int |
getPointCount()
Gets the number of points in the data set |
int |
hashCode()
|
protected void |
init()
|
boolean |
isCyclical()
Cyclical models are quite rare so we return a value of false here as a default. |
Iterator<Chartable> |
iterator()
|
void |
removeChartModelListener(ChartModelListener listener)
De-register the listener's interest in this chart model. |
void |
setDelegate(ChartModel chartModel)
|
void |
setDelegates(ChartModel... chartModels)
|
void |
setDelegates(Collection<ChartModel> chartModels,
boolean wireListeners)
|
void |
setName(String name)
Sets the name of the model instance to the supplied string. |
protected abstract void |
update()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.jidesoft.chart.model.AnnotationModel |
|---|
isAnnotationsVisible, setAnnotationsVisible |
| Constructor Detail |
|---|
public AbstractDelegatingChartModel()
public AbstractDelegatingChartModel(ChartModel... delegates)
public AbstractDelegatingChartModel(Collection<ChartModel> delegates)
| Method Detail |
|---|
protected void init()
public abstract int getAnnotationCount()
AnnotationModel
getAnnotationCount in interface AnnotationModelpublic abstract Annotation getAnnotation(int n)
AnnotationModel
getAnnotation in interface AnnotationModeln - the index.
public abstract Chartable getPoint(int n)
ChartModel
getPoint in interface ChartModeln - the index
ChartModel.public abstract int getPointCount()
ChartModel
getPointCount in interface ChartModelprotected abstract void update()
public String getName()
getName in interface ChartModelgetName in interface Namedpublic void setName(String name)
Note that you should not change the name of a ChartModel after it has already been added to a Chart, as the name is used to identify the instance.
name - the name of the model instancepublic AnnotatedChartModel getDelegate()
public AnnotatedChartModel getDelegate(int i)
public AnnotatedChartModel[] getDelegates()
public void setDelegate(ChartModel chartModel)
public void setDelegates(Collection<ChartModel> chartModels,
boolean wireListeners)
public void setDelegates(ChartModel... chartModels)
public boolean isCyclical()
isCyclical in interface ChartModelpublic void addChartModelListener(ChartModelListener listener)
addChartModelListener in interface ChartModellistener - the listener that will receive eventspublic void removeChartModelListener(ChartModelListener listener)
removeChartModelListener in interface ChartModellistener - the listener that will no longer receive eventsprotected void fireModelChanged()
public void chartModelChanged()
chartModelChanged in interface ChartModelListenerpublic Iterator<Chartable> iterator()
iterator in interface Iterable<Chartable>public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||