|
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
com.jidesoft.chart.model.AverageChartModel
public class AverageChartModel
A ChartModel that averages all the y values of its delegate that have the same x value.
| Constructor Summary | |
|---|---|
AverageChartModel(AnnotatedChartModel[] delegates)
|
|
AverageChartModel(String name,
AnnotatedChartModel[] delegates)
|
|
| Method Summary | |
|---|---|
static Double |
average(List<Double> values)
|
Annotation |
getAnnotation(int n)
Gets the nth annotation. |
int |
getAnnotationCount()
Returns the number of annotations |
Chartable |
getPoint(int n)
Takes the (y axis) average of the nth points of the supplied chart models. |
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()
Cyclical models are quite rare so we return a value of false here as a default. |
void |
setAnnotationsVisible(boolean visible)
Specify whether annotations should be shown |
protected void |
update()
|
| Methods inherited from class com.jidesoft.chart.model.AbstractDelegatingChartModel |
|---|
addChartModelListener, chartModelChanged, equals, fireModelChanged, getDelegate, getDelegate, getDelegates, getName, hashCode, init, iterator, removeChartModelListener, setDelegate, setDelegates, setDelegates, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AverageChartModel(AnnotatedChartModel[] delegates)
public AverageChartModel(String name,
AnnotatedChartModel[] delegates)
| Method Detail |
|---|
public int getAnnotationCount()
AnnotationModel
getAnnotationCount in interface AnnotationModelgetAnnotationCount in class AbstractDelegatingChartModelpublic Annotation getAnnotation(int n)
AnnotationModel
getAnnotation in interface AnnotationModelgetAnnotation in class AbstractDelegatingChartModeln - the index.
protected void update()
update in class AbstractDelegatingChartModelpublic static Double average(List<Double> values)
public Chartable getPoint(int n)
getPoint in interface ChartModelgetPoint in class AbstractDelegatingChartModeln - the index
ChartModel.public int getPointCount()
ChartModel
getPointCount in interface ChartModelgetPointCount in class AbstractDelegatingChartModelpublic boolean isAnnotationsVisible()
AnnotationModel
public void setAnnotationsVisible(boolean visible)
AnnotationModel
visible - whether annotations should be shownpublic boolean isCyclical()
AbstractDelegatingChartModel
isCyclical in interface ChartModelisCyclical in class AbstractDelegatingChartModel
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||