com.steema.teechart.functions
Class DownSampling

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

public class DownSampling
extends Function


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
DownSampling()
           
DownSampling(IBaseChart c)
           
 
Method Summary
 void addPoints(java.util.Vector source)
          Gets all points from Source series, performs a function operation and stores results in ParentSeries.
 java.lang.String getDescription()
          Gets descriptive text.
 int getDisplayedPointCount()
           
 DownSamplingMethod getMethod()
           
 int getReducedSize()
           
 double getTolerance()
           
 int reduce(DownSamplingMethod algorithm, Series s, double tol, int lbound, int ubound, double[] rx, double[] ry, ColorList colors, Color color)
           
 void setDisplayedPointCount(int value)
           
 void setMethod(DownSamplingMethod value)
           
 void setTolerance(double value)
           
 
Methods inherited from class com.steema.teechart.functions.Function
addFunctionXY, calculate, calculateAllPoints, calculateByPeriod, calculateMany, 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

DownSampling

public DownSampling()

DownSampling

public DownSampling(IBaseChart c)
Method Detail

reduce

public int reduce(DownSamplingMethod algorithm,
                  Series s,
                  double tol,
                  int lbound,
                  int ubound,
                  double[] rx,
                  double[] ry,
                  ColorList colors,
                  Color color)

getReducedSize

public int getReducedSize()

getDisplayedPointCount

public int getDisplayedPointCount()

setDisplayedPointCount

public void setDisplayedPointCount(int value)

getTolerance

public double getTolerance()

setTolerance

public void setTolerance(double value)

getMethod

public DownSamplingMethod getMethod()

setMethod

public void setMethod(DownSamplingMethod value)

addPoints

public void addPoints(java.util.Vector source)
Description copied from class: Function
Gets all points from Source series, performs a function operation and stores results in ParentSeries.

Overrides:
addPoints in class Function
Parameters:
source - ArrayList

getDescription

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

Overrides:
getDescription in class Function
Returns:
String