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

Inheritance: DataPointSeries, IResourceDictionaryDispenser, IRequireGlobalSeriesIndex
Afficher le fichier Open project: xyzzer/WinRTXamlToolkit Class Usage Examples

Méthodes publiques

Свойство Type Description
PaletteProperty Windows.UI.Xaml.DependencyProperty

Private Properties

Свойство Type Description
ConvertRatioOfRotationToPoint Point
OnPalettePropertyChanged void
OnPalettePropertyChanged void
OnPieDataPointActualOffsetRatioChanged void
OnPieDataPointActualRatioChanged void
OnPieDataPointOffsetRatioChanged void
OnPieDataPointRatioChanged void
SeriesHostResourceDictionariesChanged void
UpdateLegendItemIndexes void
UpdatePieDataPointGeometry void
UpdateRatios void

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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

AttachEventHandlersToDataPoint() protected méthode

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

CreateDataPoint() protected méthode

Creates a data point.
protected CreateDataPoint ( ) : DataPoint
Résultat DataPoint

CreatePieLegendItem() protected méthode

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.
Résultat LegendItem

DetachEventHandlersFromDataPoint() protected méthode

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

GetResourceDictionariesWhere() public méthode

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.
Résultat IEnumerator

GlobalSeriesIndexChanged() public méthode

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

OnBeforeUpdateDataPoints() protected méthode

Updates all ratios before data points are updated.
protected OnBeforeUpdateDataPoints ( ) : void
Résultat void

OnDataPointDependentValueChanged() protected méthode

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.
Résultat void

OnDataPointIndependentValueChanged() protected méthode

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.
Résultat void

OnDataPointStylePropertyChanged() protected méthode

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.
Résultat void

OnDataPointsChanged() protected méthode

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.
Résultat void

OnLegendItemStylePropertyChanged() protected méthode

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.
Résultat void

OnResourceDictionariesChanged() protected méthode

Invokes the ResourceDictionariesChanged event.
protected OnResourceDictionariesChanged ( EventArgs e ) : void
e System.EventArgs Event arguments.
Résultat void

OnSeriesHostPropertyChanged() protected méthode

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.
Résultat void

PieSeries() public méthode

Initializes a new instance of the PieSeries class.
public PieSeries ( ) : System
Résultat System

RemoveDataPoint() protected méthode

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

UpdateDataPoint() protected méthode

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

Property Details

PaletteProperty public_oe static_oe property

Identifies the Palette dependency property.
public static DependencyProperty,Windows.UI.Xaml PaletteProperty
Résultat Windows.UI.Xaml.DependencyProperty