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

Inheritance: RangeAxis
Mostrar archivo Open project: xyzzer/WinRTXamlToolkit Class Usage Examples

Public Properties

Property Type Description
ActualIntervalProperty DependencyProperty
ActualMaximumProperty DependencyProperty
ActualMinimumProperty DependencyProperty
IntervalProperty DependencyProperty
IntervalTypeProperty DependencyProperty
MaximumProperty DependencyProperty
MinimumProperty DependencyProperty

Private Properties

Property Type Description
AlignIntervalStart DateTime
CalculateActualInterval double
CalculateDateTimeInterval double
GetPlotAreaCoordinate UnitValue
IncrementDateTime DateTime
OnIntervalPropertyChanged void
OnIntervalPropertyChanged void
OnIntervalTypePropertyChanged void
OnIntervalTypePropertyChanged void
OnMaximumPropertyChanged void
OnMaximumPropertyChanged void
OnMinimumPropertyChanged void
OnMinimumPropertyChanged void
OverrideDataRange Range

Public Methods

Method Description
CanPlot ( object value ) : bool

Returns a value indicating whether a value can plot.

DateTimeAxis ( ) : System

Instantiates a new instance of the DateTimeAxis2 class.

Protected Methods

Method Description
CreateAxisLabel ( ) : Control

Creates a new instance of the DateTimeAxisLabel class.

GetLabelValues ( Size availableSize ) : IEnumerable

Returns a sequence of values to plot on the axis.

GetMajorAxisValues ( Size availableSize ) : IEnumerable

Returns a sequence of major values.

GetMajorTickMarkValues ( Size availableSize ) : IEnumerable

Returns a sequence of values to create major tick marks for.

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

Returns the plot area coordinate of a value.

GetPlotAreaCoordinate ( object value, double length ) : UnitValue

Returns the plot area coordinate of a value.

GetValueAtPosition ( UnitValue value ) : IComparable

Returns the value range given a plot area coordinate.

OnActualRangeChanged ( Range range ) : void

Updates the typed actual maximum and minimum properties when the actual range changes.

PrepareAxisLabel ( Control label, object dataContext ) : void

Prepares an instance of the DateTimeAxisLabel class by setting its IntervalType property.

Private Methods

Method Description
AlignIntervalStart ( DateTime start, double intervalSize, DateTimeIntervalType type ) : DateTime

Adjusts the beginning of the first interval depending on the type and size.

CalculateActualInterval ( Size availableSize ) : double

Returns the actual interval to use to determine which values are displayed in the axis.

CalculateDateTimeInterval ( DateTime minimum, DateTime maximum, DateTimeIntervalType &type, Size availableSize ) : double
GetPlotAreaCoordinate ( object value, Range currentRange, double length ) : UnitValue

Returns the plot area coordinate of a value.

IncrementDateTime ( DateTime date, double interval ) : DateTime

This method accepts a date time and increments it.

OnIntervalPropertyChanged ( ) : void

IntervalProperty property changed handler.

OnIntervalPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

IntervalProperty property changed handler.

OnIntervalTypePropertyChanged ( DateTimeIntervalType newValue ) : void

IntervalTypeProperty property changed handler.

OnIntervalTypePropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

IntervalTypeProperty property changed handler.

OnMaximumPropertyChanged ( DateTime newValue ) : void

MaximumProperty property changed handler.

OnMaximumPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

MaximumProperty property changed handler.

OnMinimumPropertyChanged ( DateTime newValue ) : void

MinimumProperty property changed handler.

OnMinimumPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

MinimumProperty property changed handler.

OverrideDataRange ( Range range ) : Range

Method Details

CanPlot() public method

Returns a value indicating whether a value can plot.
public CanPlot ( object value ) : bool
value object The value to plot.
return bool

CreateAxisLabel() protected method

Creates a new instance of the DateTimeAxisLabel class.
protected CreateAxisLabel ( ) : Control
return Windows.UI.Xaml.Controls.Control

DateTimeAxis() public method

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

GetLabelValues() protected method

Returns a sequence of values to plot on the axis.
protected GetLabelValues ( Size availableSize ) : IEnumerable
availableSize Size The available size.
return IEnumerable

GetMajorAxisValues() protected method

Returns a sequence of major values.
protected GetMajorAxisValues ( Size availableSize ) : IEnumerable
availableSize Size The available size.
return IEnumerable

GetMajorTickMarkValues() protected method

Returns a sequence of values to create major tick marks for.
protected GetMajorTickMarkValues ( Size availableSize ) : IEnumerable
availableSize Size The available size.
return IEnumerable

GetPlotAreaCoordinate() protected method

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

GetPlotAreaCoordinate() protected method

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

GetValueAtPosition() protected method

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

OnActualRangeChanged() protected method

Updates the typed actual maximum and minimum properties when the actual range changes.
protected OnActualRangeChanged ( Range range ) : void
range Range The actual range.
return void

PrepareAxisLabel() protected method

Prepares an instance of the DateTimeAxisLabel class by setting its IntervalType property.
protected PrepareAxisLabel ( Control label, object dataContext ) : void
label Windows.UI.Xaml.Controls.Control An instance of the DateTimeAxisLabel class. ///
dataContext object The data context to assign to the label. ///
return void

Property Details

ActualIntervalProperty public_oe static_oe property

Identifies the ActualInterval dependency property.
public static DependencyProperty ActualIntervalProperty
return DependencyProperty

ActualMaximumProperty public_oe static_oe property

Identifies the ActualMaximum dependency property.
public static DependencyProperty ActualMaximumProperty
return DependencyProperty

ActualMinimumProperty public_oe static_oe property

Identifies the ActualMinimum dependency property.
public static DependencyProperty ActualMinimumProperty
return DependencyProperty

IntervalProperty public_oe static_oe property

Identifies the Interval dependency property.
public static DependencyProperty IntervalProperty
return DependencyProperty

IntervalTypeProperty public_oe static_oe property

Identifies the InternalIntervalType dependency property.
public static DependencyProperty IntervalTypeProperty
return DependencyProperty

MaximumProperty public_oe static_oe property

Identifies the Maximum dependency property.
public static DependencyProperty MaximumProperty
return DependencyProperty

MinimumProperty public_oe static_oe property

Identifies the Minimum dependency property.
public static DependencyProperty MinimumProperty
return DependencyProperty