Interface IValueDistribution
Interface which converts real scale value (given as value between Min and Max property of the scale) to the relative value (value in the [0...1] interval) which will represent relative position of the value along the scale and vice versa. It also will be able to calculate value for the tick mark using its index and total number of ticks.
Namespace: Telerik.Windows.Controls.Gauge
Assembly: Telerik.Windows.Controls.DataVisualization.dll
Syntax
public interface IValueDistribution
Methods
CalculateScaleMetrics(GraphicScale)
Calculate scale specific metrics which can be used to perform other calculations.
Declaration
void CalculateScaleMetrics(GraphicScale scale)
Parameters
Graphic Scale object. |
GetAbsoluteValue(Double, Double, Double)
Gets absolute value for given relative value.
Declaration
double GetAbsoluteValue(double min, double max, double relativeValue)
Parameters
System. Minimal scale value. |
System. Maximal scale value. |
System. Relative value. |
Returns
System. Absolute value. |
GetRelativeValue(Double, Double, Double)
Gets relative value for given absolute value.
Declaration
double GetRelativeValue(double min, double max, double absoluteValue)
Parameters
System. Minimal scale value. |
System. Maximal scale value. |
System. Absolute value. |
Returns
System. Relative value. |
GetValueAtTick(GraphicScale, Int32, Int32, Int32)
Get value at the tick position.
Declaration
double GetValueAtTick(GraphicScale scale, int majorTickIndex, int middleTickIndex, int minorTickIndex)
Parameters
Graphic Scale object. |
System. MajorTick index. |
System. MiddleTick index. |
System. MinorTick index. |
Returns
System. Absolute value at the tick position. |