NumericTickProvider
Provides tick Coordinates for the NumericAxis
Inherits: TickProvider<double>
Methods
protected virtual double[] CalculateMajorTicks(IRange<double> tickRange, IAxisDelta<double> tickDelta)
result = numericTickProvider.CalculateMajorTicks(tickRange, tickDelta)
Calculates the Major Ticks for the axis given a VisibleRange and Delta
- tickRange
- The VisibleRange
- tickDelta
- The Deltas, e.g. MinorDelta and MajorDelta
Returns: The Major ticks (data values) as double
protected virtual double[] CalculateMinorTicks(IRange<double> tickRange, IAxisDelta<double> tickDelta, double[] majorTicks)
result = numericTickProvider.CalculateMinorTicks(tickRange, tickDelta, majorTicks)
Calculates the Minor Ticks for the axis given a VisibleRange and Delta
- tickRange
- The VisibleRange
- tickDelta
- The Deltas, e.g. MinorDelta and MajorDelta
- majorTicks
- The previously calculated Major Ticks
Returns: The Minor Ticks (data values) as double
protected virtual double[] CalculateMinorTicks(IRange<double> tickRange, IAxisDelta<double> tickDelta)
result = numericTickProvider.CalculateMinorTicks(tickRange, tickDelta)
Calculates the Minor Ticks for the axis given a VisibleRange and Delta
- tickRange
- The VisibleRange
- tickDelta
- The Deltas, e.g. MinorDelta and MajorDelta
Returns: The Major ticks (data values) as double
public override double[] GetMajorTicks(IAxisParams axis)
result = numericTickProvider.GetMajorTicks(axis)
Calls Double}) to calcuate Minor Ticks, then returns a double representation of minor ticks array
- axis
- The AxisParams for the axis
Returns: The array of ticks to display (data values converted to double)
public double[] GetMajorTicks(IRange<double> tickRange, IAxisDelta<double> tickDelta)
result = numericTickProvider.GetMajorTicks(tickRange, tickDelta)
Given a double tick range with Min, Max, MajorDelta and MinorDelta, return an array of absolute values for major ticks
public override double[] GetMinorTicks(IAxisParams axis)
result = numericTickProvider.GetMinorTicks(axis)
Calls Double}) to calcuate Minor Ticks, then returns a double representation of minor ticks array
- axis
- The AxisParams for the axis
Returns: The array of ticks to display (data values converted to double)
public double[] GetMinorTicks(IRange<double> tickRange, IAxisDelta<double> tickDelta)
result = numericTickProvider.GetMinorTicks(tickRange, tickDelta)
Given a tickRange with Min, Max, MajorDelta and MinorDelta, return an array of absolute values for minor ticks
public double[] GetMinorTicks(IRange<double> tickRange, IAxisDelta<double> tickDelta, double[] majorTicks)
result = numericTickProvider.GetMinorTicks(tickRange, tickDelta, majorTicks)
Given a tickRange with Min, Max, MajorDelta and MinorDelta, return an array of absolute values for minor ticks
protected bool IsParamsValid(IRange<double> tickRange, IAxisDelta<double> tickDelta)
result = numericTickProvider.IsParamsValid(tickRange, tickDelta)
Determines whether the VisibleRange and Delta parameters are valid, e.g. are Real Numbers, and VisibleRange.Min < Max
- tickRange
- The VisibleRange
- tickDelta
- The Delta, e.g. MinorDelta, MajorDelta