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

Inheritance: DataPointSeries, IResourceDictionaryDispenser, IRequireGlobalSeriesIndex
Mostrar archivo Open project: xyzzer/WinRTXamlToolkit Class Usage Examples

Public Properties

Property Type Description
PaletteProperty Windows.UI.Xaml.DependencyProperty

Private Properties

Property Type Description
ConvertRatioOfRotationToPoint Point
OnPalettePropertyChanged void
OnPalettePropertyChanged void
OnPieDataPointActualOffsetRatioChanged void
OnPieDataPointActualRatioChanged void
OnPieDataPointOffsetRatioChanged void
OnPieDataPointRatioChanged void
SeriesHostResourceDictionariesChanged void
UpdateLegendItemIndexes void
UpdatePieDataPointGeometry void
UpdateRatios void

Public Methods

Method Description
GetResourceDictionariesWhere ( bool>.Func predicate ) : IEnumerator

Returns a rotating enumerator of ResourceDictionary objects that coordinates with the dispenser object to ensure that no two enumerators are on the same item. If the dispenser is reset or its collection is changed then the enumerators are also reset.

GlobalSeriesIndexChanged ( int globalIndex ) : void

This method updates the global series index property.

PieSeries ( ) : System

Initializes a new instance of the PieSeries class.

Protected Methods

Method Description
AddDataPoint ( DataPoint dataPoint ) : void

Creates a legend item for each data point.

AttachEventHandlersToDataPoint ( DataPoint dataPoint ) : void

Attach event handlers to a data point.

CreateDataPoint ( ) : DataPoint

Creates a data point.

CreatePieLegendItem ( DataPoint dataPoint, int index ) : LegendItem

Creates a legend item from a data point.

DetachEventHandlersFromDataPoint ( DataPoint dataPoint ) : void

Detaches event handlers from a data point.

OnBeforeUpdateDataPoints ( ) : void

Updates all ratios before data points are updated.

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

Updates the data point when the dependent value is changed.

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

Updates the data point when the independent value is changed.

OnDataPointStylePropertyChanged ( Style oldValue, Style newValue ) : void

DataPointStyleProperty property changed handler.

OnDataPointsChanged ( IList newDataPoints, IList oldDataPoints ) : void

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

OnLegendItemStylePropertyChanged ( Style oldValue, Style newValue ) : void

Called when the value of the LegendItemStyle property changes.

OnResourceDictionariesChanged ( EventArgs e ) : void

Invokes the ResourceDictionariesChanged event.

OnSeriesHostPropertyChanged ( ISeriesHost oldValue, ISeriesHost newValue ) : void

Called when the value of the SeriesHost property changes.

RemoveDataPoint ( DataPoint dataPoint ) : void

Removes data point's legend item when the data point is removed.

UpdateDataPoint ( DataPoint dataPoint ) : void

Updates a data point.

Private Methods

Method Description
ConvertRatioOfRotationToPoint ( double ratio, double radiusX, double radiusY ) : Point

Accepts a ratio of a full rotation, the x and y length and returns the 2D point using trigonometric functions.

OnPalettePropertyChanged ( Collection newValue ) : void

PaletteProperty property changed handler.

OnPalettePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

PaletteProperty property changed handler.

OnPieDataPointActualOffsetRatioChanged ( object sender, RoutedPropertyChangedEventArgs args ) : void

Updates the data point when the pie data point's actual offset ratio is changed.

OnPieDataPointActualRatioChanged ( object sender, RoutedPropertyChangedEventArgs args ) : void

Updates the data point when the pie data point's actual ratio is changed.

OnPieDataPointOffsetRatioChanged ( object sender, RoutedPropertyChangedEventArgs args ) : void

Updates the data point when the pie data point's offset ratio is changed.

OnPieDataPointRatioChanged ( object sender, RoutedPropertyChangedEventArgs args ) : void

Updates the data point when the pie data point's ratio is changed.

SeriesHostResourceDictionariesChanged ( object sender, EventArgs e ) : void

Handles the SeriesHost's ResourceDictionariesChanged event.

UpdateLegendItemIndexes ( ) : void

Updates the indexes of all legend items when a change is made to the collection.

UpdatePieDataPointGeometry ( PieDataPoint pieDataPoint, double plotAreaWidth, double plotAreaHeight ) : void

Updates the PieDataPoint's Geometry property.

UpdateRatios ( ) : void

Updates the ratios of each data point.

Method Details

AddDataPoint() protected method

Creates a legend item for each data point.
protected AddDataPoint ( DataPoint dataPoint ) : void
dataPoint DataPoint The data point added.
return void

AttachEventHandlersToDataPoint() protected method

Attach event handlers to a data point.
protected AttachEventHandlersToDataPoint ( DataPoint dataPoint ) : void
dataPoint DataPoint The data point.
return void

CreateDataPoint() protected method

Creates a data point.
protected CreateDataPoint ( ) : DataPoint
return DataPoint

CreatePieLegendItem() protected method

Creates a legend item from a data point.
protected CreatePieLegendItem ( DataPoint dataPoint, int index ) : LegendItem
dataPoint DataPoint The data point to use to create the legend item.
index int The 1-based index of the Control.
return LegendItem

DetachEventHandlersFromDataPoint() protected method

Detaches event handlers from a data point.
protected DetachEventHandlersFromDataPoint ( DataPoint dataPoint ) : void
dataPoint DataPoint The data point.
return void

GetResourceDictionariesWhere() public method

Returns a rotating enumerator of ResourceDictionary objects that coordinates with the dispenser object to ensure that no two enumerators are on the same item. If the dispenser is reset or its collection is changed then the enumerators are also reset.
public GetResourceDictionariesWhere ( bool>.Func predicate ) : IEnumerator
predicate bool>.Func A predicate that returns a value indicating /// whether to return an item.
return IEnumerator

GlobalSeriesIndexChanged() public method

This method updates the global series index property.
public GlobalSeriesIndexChanged ( int globalIndex ) : void
globalIndex int The global index of the series.
return void

OnBeforeUpdateDataPoints() protected method

Updates all ratios before data points are updated.
protected OnBeforeUpdateDataPoints ( ) : void
return void

OnDataPointDependentValueChanged() protected method

Updates the data point when the dependent value is changed.
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

Updates the data point when the independent value is changed.
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

OnDataPointStylePropertyChanged() protected method

DataPointStyleProperty property changed handler.
protected OnDataPointStylePropertyChanged ( Style oldValue, Style newValue ) : void
oldValue Windows.UI.Xaml.Style Old value.
newValue Windows.UI.Xaml.Style 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

OnLegendItemStylePropertyChanged() protected method

Called when the value of the LegendItemStyle property changes.
protected OnLegendItemStylePropertyChanged ( Style oldValue, Style newValue ) : void
oldValue Windows.UI.Xaml.Style Old value.
newValue Windows.UI.Xaml.Style New value.
return void

OnResourceDictionariesChanged() protected method

Invokes the ResourceDictionariesChanged event.
protected OnResourceDictionariesChanged ( EventArgs e ) : void
e System.EventArgs Event arguments.
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

PieSeries() public method

Initializes a new instance of the PieSeries class.
public PieSeries ( ) : System
return System

RemoveDataPoint() protected method

Removes data point's legend item when the data point is removed.
protected RemoveDataPoint ( DataPoint dataPoint ) : void
dataPoint DataPoint The data point to remove.
return void

UpdateDataPoint() protected method

Updates a data point.
protected UpdateDataPoint ( DataPoint dataPoint ) : void
dataPoint DataPoint The data point to update.
return void

Property Details

PaletteProperty public_oe static_oe property

Identifies the Palette dependency property.
public static DependencyProperty,Windows.UI.Xaml PaletteProperty
return Windows.UI.Xaml.DependencyProperty