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

An axis that has a range.
Inheritance: DisplayAxis, IRangeAxis, IValueMarginConsumer
Mostra file Open project: xyzzer/WinRTXamlToolkit

Public Properties

Property Type Description
MinorTickMarkStyleProperty Windows.UI.Xaml.DependencyProperty

Private Properties

Property Type Description
EnforceMaximumAndMinimum Range
GetLabelValues IEnumerable
GetMajorGridLineValues IEnumerable
GetMajorTickMarkValues IEnumerable
GetMaxLeftAndRightOverlap void
GetMinorTickMarkValues IEnumerable
IRangeAxis IComparable
IRangeConsumer void
IValueMarginConsumer void
RenderOriented void
UpdateActualRange void
UpdateValueMargins void

Public Methods

Method Description
GetPlotAreaCoordinate ( object value ) : UnitValue

Returns the plot area coordinate of a given value.

Protected Methods

Method Description
CreateMinorTickMark ( ) : Line

Creates a minor axis tick mark.

GetMajorGridLineCoordinates ( Size availableSize ) : IEnumerable

Returns a sequence of the major grid line coordinates.

GetPlotAreaCoordinate ( object value, Range currentRange, double length ) : UnitValue

Returns the plot area coordinate of a given value.

GetPlotAreaCoordinate ( object value, double length ) : UnitValue

Returns the plot area coordinate of a given value.

GetValueAtPosition ( UnitValue value ) : IComparable

Returns the value range given a plot area coordinate.

OnActualRangeChanged ( Range range ) : void

Invalidates axis when the actual range changes.

OnObjectRegistered ( IAxisListener series ) : void

If a new range provider is registered, update actual range.

OnObjectUnregistered ( IAxisListener series ) : void

If a range provider is unregistered, update actual range.

OverrideDataRange ( Range range ) : Range

Overrides the data range.

RangeAxis ( ) : System

Instantiates a new instance of the RangeAxis class.

Render ( Size availableSize ) : void

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

Private Methods

Method Description
EnforceMaximumAndMinimum ( Range range ) : Range

Modifies a range to respect the minimum and maximum axis values.

GetLabelValues ( Size availableSize ) : IEnumerable
GetMajorGridLineValues ( Size availableSize ) : IEnumerable
GetMajorTickMarkValues ( Size availableSize ) : IEnumerable
GetMaxLeftAndRightOverlap ( IList valueMargins, ValueMarginCoordinateAndOverlap &maxLeftOverlapValueMargin, ValueMarginCoordinateAndOverlap &maxRightOverlapValueMargin ) : void

Returns the value margin, coordinate, and overlap triples that have the largest left and right overlap.

GetMinorTickMarkValues ( Size availableSize ) : IEnumerable
IRangeAxis ( UnitValue value ) : IComparable

Returns the value range given a plot area coordinate.

IRangeConsumer ( IRangeProvider usesRangeAxis, Range range ) : void

Updates the axis with information about a provider's data range.

IValueMarginConsumer ( IValueMarginProvider provider, IEnumerable valueMargins ) : void

Updates the layout of the axis to accommodate a sequence of value margins.

RenderOriented ( Size availableSize ) : void

Renders the axis as an oriented axis.

UpdateActualRange ( ) : void

Updates the actual range displayed on the axis.

UpdateValueMargins ( IList valueMargins, Range comparableRange ) : void

Create function that when given a range will return the amount in pixels by which the value margin range overlaps. Positive numbers represent values outside the range.

Method Details

CreateMinorTickMark() protected method

Creates a minor axis tick mark.
protected CreateMinorTickMark ( ) : Line
return Line

GetMajorGridLineCoordinates() protected method

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

GetPlotAreaCoordinate() public method

Returns the plot area coordinate of a given value.
public GetPlotAreaCoordinate ( object value ) : UnitValue
value object The value to return the plot area coordinate for.
return UnitValue

GetPlotAreaCoordinate() protected abstract method

Returns the plot area coordinate of a given value.
protected abstract GetPlotAreaCoordinate ( object value, Range currentRange, double length ) : UnitValue
value object The value to return the plot area coordinate for.
currentRange Range The value range to use when calculating the plot area coordinate.
length double The length of the axis.
return UnitValue

GetPlotAreaCoordinate() protected abstract method

Returns the plot area coordinate of a given value.
protected abstract GetPlotAreaCoordinate ( object value, double length ) : UnitValue
value object The value to return the plot area coordinate for.
length double The length of the axis.
return UnitValue

GetValueAtPosition() protected abstract method

Returns the value range given a plot area coordinate.
protected abstract GetValueAtPosition ( UnitValue value ) : IComparable
value UnitValue The plot area coordinate.
return IComparable

OnActualRangeChanged() protected method

Invalidates axis when the actual range changes.
protected OnActualRangeChanged ( Range range ) : void
range Range The new actual range.
return void

OnObjectRegistered() protected method

If a new range provider is registered, update actual range.
protected OnObjectRegistered ( IAxisListener series ) : void
series IAxisListener The axis listener being registered.
return void

OnObjectUnregistered() protected method

If a range provider is unregistered, update actual range.
protected OnObjectUnregistered ( IAxisListener series ) : void
series IAxisListener The axis listener being unregistered.
return void

OverrideDataRange() protected method

Overrides the data range.
protected OverrideDataRange ( Range range ) : Range
range Range The range to potentially override.
return Range

RangeAxis() protected method

Instantiates a new instance of the RangeAxis class.
protected RangeAxis ( ) : System
return System

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

MinorTickMarkStyleProperty public_oe static_oe property

Identifies the MinorTickMarkStyle dependency property.
public static DependencyProperty,Windows.UI.Xaml MinorTickMarkStyleProperty
return Windows.UI.Xaml.DependencyProperty