Class DateTickProvider
Provides ticks for the com.scichart.charting.visuals.axes.DateAxis
Inheritance
DateTickProvider
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class DateTickProvider extends tickProviders.DeltaTickProvider<deltaCalculators.DateDeltaCalculator>
Constructors
DateTickProvider()
Creates a new instance of DateTickProvider class
Declaration
public DateTickProvider()
DateTickProvider(deltaCalculators.DateDeltaCalculator deltaCalculator)
Creates a new instance of DateTickProvider class
Declaration
public DateTickProvider(deltaCalculators.DateDeltaCalculator deltaCalculator)
Parameters
| Type | Name | Description |
|---|---|---|
| deltaCalculators.DateDeltaCalculator | deltaCalculator | The delta calculator to use |
Methods
addDelta(long current, long delta)
When overridden in a derived class, Adds the current value to the nearest one specified by delta value
Declaration
protected long addDelta(long current, long delta)
Parameters
| Type | Name | Description |
|---|---|---|
| long | current | The current value |
| long | delta | The delta |
Returns
| Type | Description |
|---|---|
| long | The addition result |
isDivisibleBy(long current, long delta)
When overridden in a derived class, Determines whether the current value is divisible by delta value
Declaration
protected boolean isDivisibleBy(long current, long delta)
Parameters
| Type | Name | Description |
|---|---|---|
| long | current | The current value |
| long | delta | The delta |
Returns
| Type | Description |
|---|---|
| boolean | True if |
roundUp(long current, long delta)
When overridden in a derived class, Rounds up the current value to the nearest one specified by delta value
Declaration
protected long roundUp(long current, long delta)
Parameters
| Type | Name | Description |
|---|---|---|
| long | current | The current value |
| long | delta | The delta |
Returns
| Type | Description |
|---|---|
| long | The rounded value |
updateTicks(DoubleValues minorTicks, DoubleValues majorTicks)
Updates major and minor tick values
Declaration
protected void updateTicks(DoubleValues minorTicks, DoubleValues majorTicks)
Parameters
| Type | Name | Description |
|---|---|---|
| DoubleValues | minorTicks | |
| DoubleValues | majorTicks |