Class DateDeltaCalculatorBase
Defines a base class for Numeric Delta Calculator
Implements
Inherited Members
Namespace:
Assembly: .dll
Syntax
public abstract class DateDeltaCalculatorBase implements deltaCalculators.IDeltaCalculator
Constructors
DateDeltaCalculatorBase()
Declaration
public DateDeltaCalculatorBase()
Methods
getDeltaFromRange(Comparable<?> min, Comparable<?> max, int minorsPerMajor)
Given an absolute Axis Min and Max, returns a IAxisDelta instance containing sensible MinorDelta and MajorDelta values
Declaration
public deltaCalculators.IAxisDelta<Long> getDeltaFromRange(Comparable<?> min, Comparable<?> max, int minorsPerMajor)
Parameters
Type | Name | Description |
---|---|---|
Comparable<?> | min | The axis VisibleRange min value |
Comparable<?> | max | The axis VisibleRange max value |
int | minorsPerMajor | The number of Minor Delta ticks per Major Tick |
Returns
Type | Description |
---|---|
IAxisDelta<Long> | The IAxisDelta instance |
getDeltaFromRange(Comparable<?> min, Comparable<?> max, int minorsPerMajor, int maxTicks)
Given an absolute Axis Min and Max, returns a IAxisDelta instance containing sensible MinorDelta and MajorDelta values
Declaration
public deltaCalculators.IAxisDelta<Long> getDeltaFromRange(Comparable<?> min, Comparable<?> max, int minorsPerMajor, int maxTicks)
Parameters
Type | Name | Description |
---|---|---|
Comparable<?> | min | |
Comparable<?> | max | |
int | minorsPerMajor | |
int | maxTicks |
Returns
Type | Description |
---|---|
IAxisDelta<Long> |
getTicks(Comparable<?> value)
Gets tick representation of specified value
Declaration
protected abstract long getTicks(Comparable<?> value)
Parameters
Type | Name | Description |
---|---|---|
Comparable<?> | value | The value to converts |
Returns
Type | Description |
---|---|
long | The tick representation |