public class High extends Function
Title: High class
Description: High Function. Returns highest value.
Example:
highFunction = new com.steema.teechart.functions.High(); highFunction.setChart(myChart.getChart()); highFunction.setPeriod(0); //all points lineSeries.setDataSource(barSeries); lineSeries.setFunction(highFunction);
Copyright (c) 2005-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
canUsePeriod, dPeriod, HideSourceList, noSourceRequired, series, SingleSource, updating
chart, InternalUse
Constructor and Description |
---|
High() |
Modifier and Type | Method and Description |
---|---|
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. |
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. |
java.lang.String |
getDescription()
Gets descriptive text.
|
addFunctionXY, addPoints, calculateAllPoints, calculateByPeriod, calculatePeriod, clear, dispose, doCalculation, getPeriod, getPeriodAlign, getPeriodStyle, getSeries, newInstance, readResolve, recalculate, setPeriod, setPeriodAlign, setPeriodStyle, setSeries, valueList
getChart, invalidate, setBooleanProperty, setChart, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
public double calculate(Series sourceSeries, int firstIndex, int lastIndex)
calculate
in class Function
sourceSeries
- SeriesfirstIndex
- intlastIndex
- intpublic double calculateMany(java.util.ArrayList sourceSeriesList, int valueIndex)
calculateMany
in class Function
sourceSeriesList
- ArrayListvalueIndex
- intpublic java.lang.String getDescription()
getDescription
in class Function