public class DateTickProvider extends DeltaTickProvider<DateDeltaCalculator>
DateAxis
currentMajorDelta, currentMinorDelta, currentVisibleRangeMax, currentVisibleRangeMin, MIN_MINOR_DELTA_VALUE
axis
Constructor and Description |
---|
DateTickProvider()
Creates a new instance of
DateTickProvider class |
DateTickProvider(DateDeltaCalculator deltaCalculator)
Creates a new instance of
DateTickProvider class |
Modifier and Type | Method and Description |
---|---|
protected long |
addDelta(long current,
long delta)
When overridden in a derived class, Adds the
current value to the nearest one specified by delta value |
protected boolean |
isDivisibleBy(long current,
long delta)
When overridden in a derived class, Determines whether the
current value is divisible by delta value |
protected long |
roundUp(long current,
long delta)
When overridden in a derived class, Rounds up the
current value to the nearest one specified by delta value |
protected void |
updateTicks(com.scichart.core.model.DoubleValues minorTicks,
com.scichart.core.model.DoubleValues majorTicks)
Updates major and minor tick values
|
getMajorTickIndex, guardDeltaValues, isFirstMajorTickEven, isParamsValid, updateCullingPriorities, updateInternal
getTicks, shouldUpdateTicks, update
attachTo, detach, isAttached
public DateTickProvider()
DateTickProvider
classpublic DateTickProvider(DateDeltaCalculator deltaCalculator)
DateTickProvider
classdeltaCalculator
- The delta calculator to useprotected void updateTicks(com.scichart.core.model.DoubleValues minorTicks, com.scichart.core.model.DoubleValues majorTicks)
updateTicks
in class TickProvider
minorTicks
- The minor ticks to updatemajorTicks
- The major ticks to updateprotected long roundUp(long current, long delta)
current
value to the nearest one specified by delta
valuecurrent
- The current valuedelta
- The deltaprotected long addDelta(long current, long delta)
current
value to the nearest one specified by delta
valuecurrent
- The current valuedelta
- The deltaprotected boolean isDivisibleBy(long current, long delta)
current
value is divisible by delta
valuecurrent
- The current valuedelta
- The deltacurrent
value is divisible by delta
value