TimeSpanTickProviderBase

StockSharp.Xaml.Charting.Visuals.Axes

A Common base class for TimeSpan and DateTimeTickProviders, which provide tick coordinates for the DateTimeAxis and TimeSpanAxis

継承元: TickProvider<IComparable>

メソッド

AddDelta(IComparable, TimeSpan) : IComparable

When overriden in a derived class, Adds the IComparable to the nearest TimeSpan specified by

current
The current value.
delta
The delta.

戻り値: The addition result

ConvertTicks(IComparable[]) : double[]

Converts ticks in generic format to Double, e.g. cast to double for numeric types, or cast DateTime.Ticks to double for DateTime types

ticks
GetMajorTicks(IAxisParams) : IComparable[]

Returns Generic-typed representation of major ticks array

axis
The AxisParams for the axis

戻り値: The array of ticks to display (data values converted to T)

GetMajorTicks(IRange, IAxisDelta<TimeSpan>) : IComparable[]

Given a date tick range with Min, Max, MajorDelta and MinorDelta, return an array of absolute values for major ticks

GetMinorTicks(IAxisParams) : IComparable[]

Returns Generic-typed representation of minor ticks array

axis
The AxisParams for the axis

戻り値: The array of ticks to display (data values converted to T)

GetMinorTicks(IRange, IAxisDelta<TimeSpan>) : IComparable[]

Given a date tick range with Min, Max, MajorDelta and MinorDelta, return an array of absolute values for major ticks

GetTicks(IComparable) : double

Returns Ticks or Ticks depending on derived type

value
IsAdditionValid(IComparable, TimeSpan) : bool

Determines whether addition is valid between the current IComparable and the TimeSpan specified by

current
The current.
delta
The delta.

戻り値: If True, addition is valid

IsDivisibleBy(IComparable, TimeSpan) : bool

When overriden in a derived class, Determines whether the IComparable is divisible by the TimeSpan specified by

current
The current value.
delta
The delta.

戻り値: If True, IsDivisibleBy

RoundUp(IComparable, TimeSpan) : IComparable

When overriden in a derived class, Rounds up the IComparable to the nearest TimeSpan specified by

current
The current value.
delta
The delta.

戻り値: The rounded value