com.steema.teechart.functions
Class Cumulative
java.lang.Object
com.steema.teechart.TeeBase
com.steema.teechart.functions.Function
com.steema.teechart.functions.Cumulative
- All Implemented Interfaces:
- java.io.Serializable
public class Cumulative
- extends Function
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 )
Copyright (c) 2005-2006 by Steema Software SL. All Rights
Reserved.
Company: Steema Software SL
- See Also:
- Serialized Form
| Fields inherited from class com.steema.teechart.TeeBase |
chart |
|
Method Summary |
double |
calculate(Series sourceSeries,
int firstIndex,
int lastIndex)
Performs function operation on SourceSeries series. |
double |
calculateMany(java.util.ArrayList 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, doCalculation, getPeriod, getPeriodAlign, getPeriodStyle, getSeries, newInstance, readResolve, recalculate, setPeriod, setPeriodAlign, setPeriodStyle, setSeries, valueList |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Cumulative
public Cumulative()
Cumulative
public Cumulative(IBaseChart c)
calculate
public double calculate(Series sourceSeries,
int firstIndex,
int lastIndex)
- Performs function operation on SourceSeries series.
First and Last parameters are ValueIndex of first and last point used
in calculation. You can override Calculate function to perform
customized calculation on one SourceSeries.
- Overrides:
calculate in class Function
- Parameters:
sourceSeries - SeriesfirstIndex - intlastIndex - int
- Returns:
- double
calculateMany
public double calculateMany(java.util.ArrayList sourceSeriesList,
int valueIndex)
- Performs function operation on list of series (SourceSeriesList).
The ValueIndex parameter defines ValueIndex of point in each Series in
list. You can override CalculateMany function to perform customized
calculation on list of SourceSeries.
- Overrides:
calculateMany in class Function
- Parameters:
sourceSeriesList - ArrayListvalueIndex - int
- Returns:
- double
getDescription
public java.lang.String getDescription()
- Gets descriptive text.
- Overrides:
getDescription in class Function
- Returns:
- String