Class BaseSeriesAggregator
Basic implementation of ISeriesAggregator interface ensuring caching of MaxValue/MinValue/etc., and correct cache invalidation on update.
Inheritance
Namespace: Telerik.Windows.Controls.Charting
Assembly: Telerik.Windows.Controls.Charting.dll
Syntax
public abstract class BaseSeriesAggregator : Object, ISeriesAggregator
Constructors
BaseSeriesAggregator(Axis, AggregationGroup)
Initializes a new instance of the BaseSeriesAggregator class.
Declaration
protected BaseSeriesAggregator(Axis axis, AggregationGroup aggregationGroup)
Parameters
Axis
axis
The axis. |
AggregationGroup
aggregationGroup
The aggregation group. |
Properties
AggregationGroup
Gets an AggregationGroup object defining the Aggregation Group data.
Declaration
public AggregationGroup AggregationGroup { get; }
Property Value
AggregationGroup
|
Implements
Axis
Gets the Axis to which the current ISeriesAggregator belongs.
Declaration
public Axis Axis { get; }
Property Value
Axis
|
Implements
MaxValue
Gets the max value from all aggregated series.
Declaration
public virtual double MaxValue { get; }
Property Value
System.Double
The max value. |
Implements
MinValue
Gets the min value from all aggregated series.
Declaration
public virtual double MinValue { get; }
Property Value
System.Double
The min value. |
Implements
Series
Gets a List of all aggregator specific DataSeries handled by the aggregator.
Declaration
public virtual RadObservableCollection<DataSeries> Series { get; }
Property Value
RadObservableCollection<DataSeries>
|
Implements
See Also
Methods
CalculateMaxValue()
Successor classes should provide implementation, evaluating the maximal value for all aggregated DataSeries (held in the Series collection).
Declaration
protected abstract double CalculateMaxValue()
Returns
System.Double
The maximum value. |
See Also
CalculateMinValue()
Successor classes should provide implementation, evaluating the minimal value for all aggregated DataSeries (held in the Series collection).
Declaration
protected abstract double CalculateMinValue()
Returns
System.Double
The minimum value. |
See Also
CalculateRange(DataSeries, Int32, DataRange)
Calculates the range in which the item at the specified itemIndex
in the
given dataSeries
should match.
Declaration
public abstract DataRange CalculateRange(DataSeries dataSeries, int itemIndex, DataRange axisRange)
Parameters
DataSeries
dataSeries
The data series. |
System.Int32
itemIndex
The index. |
DataRange
axisRange
The range. |
Returns
DataRange
|
Implements
CalculateRange(DataSeries, Int32, DataRange, Boolean)
Calculates the range in which the item at the specified itemIndex
in the
given dataSeries
should match.
Declaration
public abstract DataRange CalculateRange(DataSeries dataSeries, int itemIndex, DataRange axisRange, bool shouldSubtractItemWidth)
Parameters
DataSeries
dataSeries
The data series. |
System.Int32
itemIndex
The index. |
DataRange
axisRange
The range. |
System.Boolean
shouldSubtractItemWidth
A value indicating whether the width of the item should be removed. |
Returns
DataRange
|
Implements
Invalidate()
This method invalidates the cached values to ensure their reevaluation. If overridden ensure calling the base.Invalidate() to keep the correct behavior of BaseSeriesAggregator .
Declaration
protected virtual void Invalidate()
See Also
Reset()
Resets this ISeriesAggregator instance, including collections and ranges.
Declaration
public virtual void Reset()
Implements
SeriesListChanged(NotifyCollectionChangedEventArgs)
Handles changes in the Series collection.
Declaration
protected virtual void SeriesListChanged(NotifyCollectionChangedEventArgs e)
Parameters
System.Collections.Specialized.NotifyCollectionChangedEventArgs
e
The event arguments. |