|
JIDE 3.4.0 | ||||||||
| 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 super class 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()
|
boolean |
equals(Object obj)
|
protected void |
fireModelChanged()
|
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()
The name of a ChartModel is important, as different chart models are assumed to have different names. |
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 |
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)
|
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()
ChartModelChart, make sure they have different names.
getName in interface ChartModelgetName in interface Namedpublic void setName(String name)
public 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)
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()
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.4.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||