|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.steema.teechart.TeeBase
com.steema.teechart.functions.Function
com.steema.teechart.functions.Cumulative
public class Cumulative
Title: Cumulative class
Description: The Cumulative function sums the Series values starting from the first point.
Example: Given these values: 1 2 3 The Cumulative function returns: 1 3 6 ( 1=1, 1+2=3 and 1+2+3=6 )
Example:
cumulativeFunction = new com.steema.teechart.functions. Cumulative(myChart.getChart()); cumulativeFunction.setPeriod(1); lineSeries.setDataSource(barSeries); lineSeries.setFunction(cumulativeFunction);
Copyright (c) 2005-2013 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Field Summary |
---|
Fields inherited from class com.steema.teechart.functions.Function |
---|
canUsePeriod, dPeriod, HideSourceList, noSourceRequired, series, SingleSource, updating |
Fields inherited from class com.steema.teechart.TeeBase |
---|
chart, InternalUse |
Constructor Summary | |
---|---|
Cumulative()
|
|
Cumulative(IBaseChart c)
|
Method Summary | |
---|---|
double |
calculate(Series sourceSeries,
int firstIndex,
int lastIndex)
Performs function operation on SourceSeries series. |
double |
calculateMany(java.util.Vector sourceSeriesList,
int valueIndex)
Performs function operation on list of series (SourceSeriesList). |
java.lang.String |
getDescription()
Gets descriptive text. |
Methods inherited from class com.steema.teechart.functions.Function |
---|
addFunctionXY, addPoints, calculateAllPoints, calculateByPeriod, calculatePeriod, clear, dispose, doCalculation, getPeriod, getPeriodAlign, getPeriodStyle, getSeries, newInstance, readResolve, recalculate, setPeriod, setPeriodAlign, setPeriodStyle, setSeries, valueList |
Methods inherited from class com.steema.teechart.TeeBase |
---|
getChart, invalidate, setBooleanProperty, setChart, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cumulative()
public Cumulative(IBaseChart c)
Method Detail |
---|
public double calculate(Series sourceSeries, int firstIndex, int lastIndex)
calculate
in class Function
sourceSeries
- SeriesfirstIndex
- intlastIndex
- int
public double calculateMany(java.util.Vector sourceSeriesList, int valueIndex)
calculateMany
in class Function
sourceSeriesList
- ArrayListvalueIndex
- int
public java.lang.String getDescription()
getDescription
in class Function
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |