ICoordinateCalculator

StockSharp.Xaml.Charting.Numerics.CoordinateCalculators

Using pre-computed constants, types which implement ICoordinateCalculator can convert from pixel coordinate to data value and back

属性

HasFlippedCoordinates : bool

Gets a value indicating whether coordinates are flipped

IsCategoryAxisCalculator : bool

Gets a value indicating whether this is a category axis coordinate calculator

IsHorizontalAxisCalculator : bool

Gets a value indicating whether this is a horizontal axis coordinate calculator

IsLogarithmicAxisCalculator : bool

Gets a value indicating whether this is a logarithmic axis coordinate calculator

IsXAxisCalculator : bool

Gets a value indicating whether this is coordinate calculator belongs by X axis

方法

GetCoordinate(DateTime) : double

Transforms the DateTime data value into a pixel coordinate

dataValue
The DateTime data value

返回值: The pixel coordinate

GetCoordinate(T) : double

Transforms a data value into a pixel coordinate

dataValue
The data value

返回值: The pixel coordinate

GetDataValue(double) : T

Transforms a pixel coordinate into a data value

pixelCoordinate
The pixel coordinate

返回值: The data value

TranslateBy(double, DoubleRange) : DoubleRange

Translates the min and max of the input range by the specified data value. Specific implementations of ICoordinateCalculator such as DoubleCoordinateCalculator, LogarithmicDoubleCoordinateCalculator and CategoryCoordinateCalculator will treat this differently

pixels
The number of pixels to translate by. InputRange min and max will be translated by this positive or negative amount
inputRange
The input DoubleRange to translate

返回值: A new instance of CategoryCoordinateCalculator with the translation applied

TranslateBy(double, double, IRange) : DoubleRange

Translates the min and max of the input range, multiplies them by the specified , . Specific implementations of ICoordinateCalculator such as DoubleCoordinateCalculator, LogarithmicDoubleCoordinateCalculator and CategoryCoordinateCalculator will treat this differently

inputRange
The input IRange to translate
minFraction
The multiplier of range start
maxFraction
The multiplier of range end