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

Inheritance: DisplayAxis, ICategoryAxis
Mostrar archivo Open project: xyzzer/WinRTXamlToolkit Class Usage Examples

Public Properties

Property Type Description
SortOrderProperty Windows.UI.Xaml.DependencyProperty

Private Properties

Property Type Description
CreateAndPrepareAxisLabel Windows.UI.Xaml.Controls.Control
OnSortOrderPropertyChanged void
OnSortOrderPropertyChanged void
RenderOriented void
UpdateCategories void

Public Methods

Method Description
CanPlot ( object value ) : bool

Returns a value indicating whether a value can be plotted on the axis.

CategoryAxis ( ) : System

Instantiates a new instance of the CategoryAxis class.

DataChanged ( IDataProvider dataProvider, IEnumerable data ) : void

Updates the categories in response to an update from a registered axis data provider.

GetCategoryAtPosition ( UnitValue position ) : object

Returns the category at a given coordinate.

GetPlotAreaCoordinate ( object value ) : UnitValue

The plot area coordinate of a value.

GetPlotAreaCoordinateRange ( object category ) : Range

Returns range of coordinates for a given category.

Protected Methods

Method Description
GetMajorGridLineCoordinates ( Size availableSize ) : IEnumerable

Returns the major axis grid line coordinates.

OnObjectRegistered ( IAxisListener series ) : void

Updates categories when a series is registered.

OnObjectUnregistered ( IAxisListener series ) : void

Updates categories when a series is unregistered.

Render ( Size availableSize ) : void

Renders the axis labels, tick marks, and other visual elements.

Private Methods

Method Description
CreateAndPrepareAxisLabel ( object value ) : Control

Creates and prepares a new axis label.

OnSortOrderPropertyChanged ( ) : void

SortOrderProperty property changed handler.

OnSortOrderPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

SortOrderProperty property changed handler.

RenderOriented ( Size availableSize ) : void

Renders as an oriented axis.

UpdateCategories ( ) : void

Updates the list of categories.

Method Details

CanPlot() public method

Returns a value indicating whether a value can be plotted on the axis.
public CanPlot ( object value ) : bool
value object A value which may or may not be able to be /// plotted.
return bool

CategoryAxis() public method

Instantiates a new instance of the CategoryAxis class.
public CategoryAxis ( ) : System
return System

DataChanged() public method

Updates the categories in response to an update from a registered axis data provider.
public DataChanged ( IDataProvider dataProvider, IEnumerable data ) : void
dataProvider IDataProvider The category axis information /// provider.
data IEnumerable A sequence of categories.
return void

GetCategoryAtPosition() public method

Returns the category at a given coordinate.
public GetCategoryAtPosition ( UnitValue position ) : object
position UnitValue The plot area position.
return object

GetMajorGridLineCoordinates() protected method

Returns the major axis grid line coordinates.
protected GetMajorGridLineCoordinates ( Size availableSize ) : IEnumerable
availableSize Windows.Foundation.Size The available size.
return IEnumerable

GetPlotAreaCoordinate() public method

The plot area coordinate of a value.
public GetPlotAreaCoordinate ( object value ) : UnitValue
value object The value for which to retrieve the plot area /// coordinate.
return UnitValue

GetPlotAreaCoordinateRange() public method

Returns range of coordinates for a given category.
public GetPlotAreaCoordinateRange ( object category ) : Range
category object The category to return the range for.
return Range

OnObjectRegistered() protected method

Updates categories when a series is registered.
protected OnObjectRegistered ( IAxisListener series ) : void
series IAxisListener The series to be registered.
return void

OnObjectUnregistered() protected method

Updates categories when a series is unregistered.
protected OnObjectUnregistered ( IAxisListener series ) : void
series IAxisListener The series to be unregistered.
return void

Render() protected method

Renders the axis labels, tick marks, and other visual elements.
protected Render ( Size availableSize ) : void
availableSize Windows.Foundation.Size The available size.
return void

Property Details

SortOrderProperty public_oe static_oe property

Identifies the SortOrder dependency property.
public static DependencyProperty,Windows.UI.Xaml SortOrderProperty
return Windows.UI.Xaml.DependencyProperty