com.steema.teechart.functions
Class Add

java.lang.Object
  extended by com.steema.teechart.TeeBase
      extended by com.steema.teechart.functions.Function
          extended by com.steema.teechart.functions.Add

public class Add
extends Function

Title: Add class

Description: Add Function.

Example:


 addFunction = new com.steema.teechart.functions.Add();
 addFunction.setChart(myChart.getChart());
 addFunction.setPeriod(0); //all points
 

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
Add()
           
 
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

Add

public Add()
Method Detail

calculate

public double calculate(Series sourceSeries,
                        int firstIndex,
                        int lastIndex)
Performs function operation on SourceSeries series.

Overrides:
calculate in class Function
Parameters:
sourceSeries - Series
firstIndex - int
lastIndex - int
Returns:
double

calculateMany

public double calculateMany(java.util.Vector sourceSeriesList,
                            int valueIndex)
Performs function operation on list of series (SourceSeriesList).

Overrides:
calculateMany in class Function
Parameters:
sourceSeriesList - ArrayList
valueIndex - int
Returns:
double

getDescription

public java.lang.String getDescription()
Gets descriptive text.

Overrides:
getDescription in class Function
Returns:
String