new DateScaleCalibrator()
The abstract base class for date scale calibrators.
Members
-
<static> registeredCalibrators. :Object
-
Gets object with information about registered date scale calibrators. Key is class name and value is constructor.
Type:
- Object
-
majorTicks :StockChartX.DateScaleMajorTick
-
Returns an array of date scale major ticks.
Type:
-
minorTicks :StockChartX.DateScaleMinorTick
-
Returns an array of date scale minor ticks.
Type:
Methods
-
<static> deserialize(state)
-
Deserializes date scale calibrator.
Parameters:
Name Type Description state
Object The state of date scale calibrator. Returns:
- Type
- IDateScaleCalibrator
-
calibrate(dateScale)
-
Calibrates date scale.
Parameters:
Name Type Description dateScale
StockChartX.DateScale The date scale. -
loadState(state)
-
Restores calibrator's state.
Parameters:
Name Type Description state
object The state. - See:
-
saveState()
-
Saves calibrator's state.
- See:
Returns:
The state.- Type
- object