BaseChartIndicatorPainter
The indicator renderer base class on the chart (for example, lines, histograms, etc.).
Herda de: ChartBaseViewModel
Implementa: IChartIndicatorPainter, IPersistable
Propriedades
Element : IChartIndicatorElement
The chart element representing the indicator.
InnerElements : IReadOnlyList<IChartElement>
Child elements.
IsAttached : bool
Whether this painter is currently attached to chart element.
Métodos
Draw(IChartDrawData) : bool
To process the new data.
- data
- New data.
Retorna: if the data was successfully drawn, otherwise, returns .
DrawValues(IList<IndicatorData>, IChartElement, Func<IndicatorData, double>) : bool
Draw indicator values using value getter.
- vals
- Values.
- element
- Element.
- getValue
- Converter.
Retorna: if the data was successfully drawn, otherwise, returns .
DrawValues(IList<IndicatorData>, IChartElement) : bool
Draw indicator single double values.
- vals
- Values.
- element
- Element.
Retorna: if the data was successfully drawn, otherwise, returns .
DrawValues(IList<IndicatorData>, IList<IndicatorData>, IChartElement) : bool
Draw indicator band values (2 doubles).
- vals1
- Values 1.
- vals2
- Values 2.
- element
- Element.
Retorna: if the data was successfully drawn, otherwise, returns .
DrawValues(IList<IndicatorData>, IList<IndicatorData>, IChartElement, Func<double, double, double>) : bool
Draw indicator converting from 2 doubles to one with converter.
- vals1
- Values 1.
- vals2
- Values 2.
- element
- Element.
- op
- Operation.
Retorna: if the data was successfully drawn, otherwise, returns .
OnAttached(IChartIndicatorElement)
Called when this painter is attached to chart indicator element.
OnDetached()
Called when this painter is detached from chart indicator element.
OnDraw(T, IDictionary<IIndicator, IList<IndicatorData>>) : bool
Draw values on chart.
- indicator
- Indicator.
- data
- Indicator values to draw on chart.
Retorna: if the data was successfully drawn, otherwise, returns .
Reset()
Reset state.