ICoordinateCalculator
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