C# Class WinRTXamlToolkit.Controls.DataVisualization.Charting.DataPointSeriesWithAxes

Represents a dynamic series that uses axes to display data points.
Inheritance: DataPointSeries, IDataProvider, IRangeProvider, IAxisListener, IValueMarginProvider
Exibir arquivo Open project: xyzzer/WinRTXamlToolkit

Private Properties

Property Type Description
GetAxes void
IAxisListener void
IDataProvider IEnumerable
IRangeProvider Range
IValueMarginProvider IEnumerable
UpdateActualDependentAxis void
UpdateActualIndependentAxis void

Protected Methods

Method Description
CreateRangeAxisFromData ( object value ) : IRangeAxis

Creates the correct range axis based on the data.

DataPointSeriesWithAxes ( ) : System

Initializes a new instance of the DataPointSeriesWithAxes class.

GetActualDataPointAxisValue ( DataPoint dataPoint, IAxis axis ) : object

Retrieves the value for a given access from a data point.

GetAxes ( DataPoint firstDataPoint ) : void

Method called to get series to acquire the axes it needs. Acquires no axes by default.

GetAxes ( DataPoint firstDataPoint, bool>.Func independentAxisPredicate, Func independentAxisFactory, bool>.Func dependentAxisPredicate, Func dependentAxisFactory ) : void

Method called to get the axes that the series needs.

GetRange ( IRangeConsumer consumer ) : Range

Returns the actual range of data for a given axis.

GetValueMargins ( IValueMarginConsumer consumer ) : IEnumerable

Returns the value margins for a given axis.

OnDataPointActualDependentValueChanged ( DataPoint dataPoint, IComparable oldValue, IComparable newValue ) : void

Update the axes when the specified data point's ActualDependentValue property changes.

OnDataPointActualIndependentValueChanged ( DataPoint dataPoint, object oldValue, object newValue ) : void

Update axes when the specified data point's actual independent value changes.

OnDataPointDependentValueChanged ( DataPoint dataPoint, IComparable oldValue, IComparable newValue ) : void

Update the axes when the specified data point's DependentValue property changes.

OnDataPointIndependentValueChanged ( DataPoint dataPoint, object oldValue, object newValue ) : void

Update axes when the specified data point's independent value changes.

OnDataPointsChanged ( IList newDataPoints, IList oldDataPoints ) : void

Called after data points have been loaded from the items source.

OnInternalDependentAxisPropertyChanged ( IAxis oldValue, IAxis newValue ) : void

DependentAxisProperty property changed handler.

OnInternalIndependentAxisPropertyChanged ( IAxis oldValue, IAxis newValue ) : void

IndependentAxisProperty property changed handler.

OnSeriesHostPropertyChanged ( ISeriesHost oldValue, ISeriesHost newValue ) : void

Called when the value of the SeriesHost property changes.

UpdateDataPoints ( IEnumerable dataPoints ) : void

Only updates all data points if series has axes.

Private Methods

Method Description
GetAxes ( ) : void

Method called to get series to acquire the axes it needs. Acquires no axes by default.

IAxisListener ( IAxis axis ) : void

Updates data points when the axis is invalidated.

IDataProvider ( IDataConsumer dataConsumer ) : IEnumerable

Returns data to a data consumer.

IRangeProvider ( IRangeConsumer rangeConsumer ) : Range

Returns the data range.

IValueMarginProvider ( IValueMarginConsumer axis ) : IEnumerable

Returns the value margins for a given axis.

UpdateActualDependentAxis ( ) : void

Update axes when the specified data point's effective dependent value changes.

UpdateActualIndependentAxis ( ) : void

Update axes when a data point's effective independent value changes.

Method Details

CreateRangeAxisFromData() protected static method

Creates the correct range axis based on the data.
protected static CreateRangeAxisFromData ( object value ) : IRangeAxis
value object The value to evaluate to determine which type of /// axis to create.
return IRangeAxis

DataPointSeriesWithAxes() protected method

Initializes a new instance of the DataPointSeriesWithAxes class.
protected DataPointSeriesWithAxes ( ) : System
return System

GetActualDataPointAxisValue() protected method

Retrieves the value for a given access from a data point.
protected GetActualDataPointAxisValue ( DataPoint dataPoint, IAxis axis ) : object
dataPoint DataPoint The data point to retrieve the value from.
axis IAxis The axis to retrieve the value for.
return object

GetAxes() protected abstract method

Method called to get series to acquire the axes it needs. Acquires no axes by default.
protected abstract GetAxes ( DataPoint firstDataPoint ) : void
firstDataPoint DataPoint The first data point.
return void

GetAxes() protected method

Method called to get the axes that the series needs.
protected GetAxes ( DataPoint firstDataPoint, bool>.Func independentAxisPredicate, Func independentAxisFactory, bool>.Func dependentAxisPredicate, Func dependentAxisFactory ) : void
firstDataPoint DataPoint The first data point.
independentAxisPredicate bool>.Func A predicate that returns /// a value indicating whether an axis is an acceptable candidate for /// the series independent axis.
independentAxisFactory Func A function that creates an /// acceptable independent axis.
dependentAxisPredicate bool>.Func A predicate that returns /// a value indicating whether an axis is an acceptable candidate for /// the series dependent axis.
dependentAxisFactory Func A function that creates an /// acceptable dependent axis.
return void

GetRange() protected method

Returns the actual range of data for a given axis.
protected GetRange ( IRangeConsumer consumer ) : Range
consumer IRangeConsumer The axis to retrieve the range for.
return Range

GetValueMargins() protected method

Returns the value margins for a given axis.
protected GetValueMargins ( IValueMarginConsumer consumer ) : IEnumerable
consumer IValueMarginConsumer The axis to retrieve the value margins for. ///
return IEnumerable

OnDataPointActualDependentValueChanged() protected method

Update the axes when the specified data point's ActualDependentValue property changes.
protected OnDataPointActualDependentValueChanged ( DataPoint dataPoint, IComparable oldValue, IComparable newValue ) : void
dataPoint DataPoint The data point.
oldValue IComparable The old value.
newValue IComparable The new value.
return void

OnDataPointActualIndependentValueChanged() protected method

Update axes when the specified data point's actual independent value changes.
protected OnDataPointActualIndependentValueChanged ( DataPoint dataPoint, object oldValue, object newValue ) : void
dataPoint DataPoint The data point.
oldValue object The old value.
newValue object The new value.
return void

OnDataPointDependentValueChanged() protected method

Update the axes when the specified data point's DependentValue property changes.
protected OnDataPointDependentValueChanged ( DataPoint dataPoint, IComparable oldValue, IComparable newValue ) : void
dataPoint DataPoint The data point.
oldValue IComparable The old value.
newValue IComparable The new value.
return void

OnDataPointIndependentValueChanged() protected method

Update axes when the specified data point's independent value changes.
protected OnDataPointIndependentValueChanged ( DataPoint dataPoint, object oldValue, object newValue ) : void
dataPoint DataPoint The data point.
oldValue object The old value.
newValue object The new value.
return void

OnDataPointsChanged() protected method

Called after data points have been loaded from the items source.
protected OnDataPointsChanged ( IList newDataPoints, IList oldDataPoints ) : void
newDataPoints IList New active data points.
oldDataPoints IList Old inactive data points.
return void

OnInternalDependentAxisPropertyChanged() protected method

DependentAxisProperty property changed handler.
protected OnInternalDependentAxisPropertyChanged ( IAxis oldValue, IAxis newValue ) : void
oldValue IAxis Old value.
newValue IAxis New value.
return void

OnInternalIndependentAxisPropertyChanged() protected method

IndependentAxisProperty property changed handler.
protected OnInternalIndependentAxisPropertyChanged ( IAxis oldValue, IAxis newValue ) : void
oldValue IAxis Old value.
newValue IAxis New value.
return void

OnSeriesHostPropertyChanged() protected method

Called when the value of the SeriesHost property changes.
protected OnSeriesHostPropertyChanged ( ISeriesHost oldValue, ISeriesHost newValue ) : void
oldValue ISeriesHost The value to be replaced.
newValue ISeriesHost The new series host value.
return void

UpdateDataPoints() protected method

Only updates all data points if series has axes.
protected UpdateDataPoints ( IEnumerable dataPoints ) : void
dataPoints IEnumerable A sequence of data points to update. ///
return void