TimeSpanTickProviderBase

StockSharp.Xaml.Charting.Visuals.Axes

TimeSpan和DateTimeTickProviders的共同基数分类,为DateTimeAxis和TimeSpanAxis提供勾选坐标

继承自: TickProvider<IComparable>

方法

AddDelta
protected abstract IComparable AddDelta(IComparable current, TimeSpan delta)
result = timeSpanTickProviderBase.AddDelta(current, delta)

当在衍生类中被覆盖时, 将 IComparable 添加到最近指定的 TimeSpan 中

current
现值.
delta
三角洲 三角洲 三角洲 三角洲 三角洲 三角洲 三角洲 三角洲

返回值: 增加的结果

ConvertTicks
protected override double[] ConvertTicks(IComparable[] ticks)
result = timeSpanTickProviderBase.ConvertTicks(ticks)

将通用格式的勾选为数字类型双倍的 Double, e.g. craw to double for numberstype, 或将 DateTime.Ticks 类型 scrap DateTime 为双倍

ticks
GetMajorTicks
public override IComparable[] GetMajorTicks(IAxisParams axis)
result = timeSpanTickProviderBase.GetMajorTicks(axis)

主要勾选阵列的通用类型表示

axis
The AxisParams for the axis

返回值: 要显示的勾选数组( 数据值转换为 T)

GetMajorTicks
private IComparable[] GetMajorTicks(IRange tickRange, IAxisDelta<TimeSpan> tickDelta)
result = timeSpanTickProviderBase.GetMajorTicks(tickRange, tickDelta)

使用 Min、 Max、 MajorDelta 和 MinorDelta 设定日期勾选范围, 请返回主要勾选的绝对值组

GetMinorTicks
public override IComparable[] GetMinorTicks(IAxisParams axis)
result = timeSpanTickProviderBase.GetMinorTicks(axis)

返回小勾勾数阵列的通用类型表示

axis
The AxisParams for the axis

返回值: 要显示的勾选数组( 数据值转换为 T)

GetMinorTicks
private IComparable[] GetMinorTicks(IRange tickRange, IAxisDelta<TimeSpan> tickDelta)
result = timeSpanTickProviderBase.GetMinorTicks(tickRange, tickDelta)

使用 Min、 Max、 MajorDelta 和 MinorDelta 设定日期勾选范围, 请返回主要勾选的绝对值组

GetTicks
protected abstract double GetTicks(IComparable value)
result = timeSpanTickProviderBase.GetTicks(value)

返回 : 选择所选类型

value
IsAdditionValid
protected abstract bool IsAdditionValid(IComparable current, TimeSpan delta)
result = timeSpanTickProviderBase.IsAdditionValid(current, delta)

确定当前 IComparable 和 TimeSpan 指定的添加是否有效 。

current
现相.
delta
三角洲 三角洲 三角洲 三角洲 三角洲 三角洲 三角洲 三角洲

返回值: 如果 True, 添加是有效的

IsDivisibleBy
protected abstract bool IsDivisibleBy(IComparable current, TimeSpan delta)
result = timeSpanTickProviderBase.IsDivisibleBy(current, delta)

当在衍生类中被覆盖时, 确定 IComparable 是否被指定的 TimeSpan 所分割

current
现值.
delta
三角洲 三角洲 三角洲 三角洲 三角洲 三角洲 三角洲 三角洲

返回值: 如果真,则% IsDivisibleBy +%%%

RoundUp
protected abstract IComparable RoundUp(IComparable current, TimeSpan delta)
result = timeSpanTickProviderBase.RoundUp(current, delta)

当在某一衍生类中被覆盖时,将 IComparable 绕入由:

current
现值.
delta
三角洲 三角洲 三角洲 三角洲 三角洲 三角洲 三角洲 三角洲

返回值: 四舍五入的数值