TimeSpanAxis
Provides a Linear, Value TimeSpan Axis, capable of rendering TimeSpan ticks on the X-Axis of a UltrachartSurface.
Inherits: TimeSpanAxisBase
Constructors
public TimeSpanAxis()
timeSpanAxis = TimeSpanAxis()
Initializes a new instance of the TimeSpanAxis class.
Methods
protected override IRange CoerceZeroRange(IRange maximumRange)
result = timeSpanAxis.CoerceZeroRange(maximumRange)
Coerce if current range is zero range
- maximumRange
- Current maximum range
protected override IComparable ConvertTickToDataValue(IComparable value)
result = timeSpanAxis.ConvertTickToDataValue(value)
When overridden in a derived class, converts a tick value to a data value. For instance, this may be overridden in the CategoryDateTimeAxis to convert between indices and DateTimes
- value
public override IRange GetDefaultNonZeroRange()
result = timeSpanAxis.GetDefaultNonZeroRange()
Returns an default non zero IRange, called internally by Ultrachart to reset the VisibleRange of an axis to an undefined state
protected override IDeltaCalculator GetDeltaCalculator()
result = timeSpanAxis.GetDeltaCalculator()
Returns an instance of an IDeltaCalculator which is used to compute the data-values of MajorDelta, MinorDelta. Overridden by derived types to allow calculations specific to that axis type.
Returns: An IDeltaCalculator instance
protected override List<Type> GetSupportedTypes()
result = timeSpanAxis.GetSupportedTypes()
Returns a list of types which current axis is designed to work with
public override IRange GetUndefinedRange()
result = timeSpanAxis.GetUndefinedRange()
Returns an undefined IRange, called internally by Ultrachart to reset the VisibleRange of an axis to an undefined state
public override bool IsOfValidType(IRange range)
result = timeSpanAxis.IsOfValidType(range)
Checks whether is not Null and is of valid type for this axis
- range
protected override IRange ToVisibleRange(IComparable min, IComparable max)
result = timeSpanAxis.ToVisibleRange(min, max)
When overriden in a derived class, converts a Min Max IComparable value into an IRange of the correct type for this axis
- min
- The min value
- max
- The max value
Returns: The IRange instance