TimeSpanTickProviderBase
StockSharp.Xaml.Charting.Visuals.Axes
DateTimeAxis と DateTimeTickProviders の共通ベースクラスで、DateTimeAxisとTimeSpanAxis のティック座標を提供している
継承元: TickProvider<IComparable>
メソッド
AddDelta
protected abstract IComparable AddDelta(IComparable current, TimeSpan delta)
result = timeSpanTickProviderBase.AddDelta(current, delta)
派生したクラスに上書きするときは、指定した最も近いTimeSpanにIComparableを追加します。
- current
- 現在の値。
- delta
- デルタ。
戻り値: 追加の結果
ConvertTicks
protected override double[] ConvertTicks(IComparable[] ticks)
result = timeSpanTickProviderBase.ConvertTicks(ticks)
一般的なフォーマットでティックをダブル、e.gに変換します。 数値タイプをダブルにキャストするか、DateTime.TicksをDateTimeに2倍にキャストします。
- 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)
最小値、最大値、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)
最小値、最大値、MajorDelta、MinorDeltaで日付ティック範囲を与えられた、メジャーティックの絶対値の配列を返します。
GetTicks
protected abstract double GetTicks(IComparable value)
result = timeSpanTickProviderBase.GetTicks(value)
派生型に応じてTicksやTicksを返す
- 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
- デルタ。
戻り値: If True, IsDivisibleBy
RoundUp
protected abstract IComparable RoundUp(IComparable current, TimeSpan delta)
result = timeSpanTickProviderBase.RoundUp(current, delta)
派生したクラスに上書きすると、指定した最も近いTimeSpanにIComparableを丸めます。
- current
- 現在の値。
- delta
- デルタ。
戻り値: 丸みのある値