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
GraphicScale
scale
Scale object. |
GetAbsoluteValue(Double, Double, Double)
Gets absolute value for given relative value.
Declaration
double GetAbsoluteValue(double min, double max, double relativeValue)
Parameters
System.Double
min
Minimal scale value. |
System.Double
max
Maximal scale value. |
System.Double
relativeValue
Relative value. |
Returns
System.Double
Absolute value. |
GetRelativeValue(Double, Double, Double)
Gets relative value for given absolute value.
Declaration
double GetRelativeValue(double min, double max, double absoluteValue)
Parameters
System.Double
min
Minimal scale value. |
System.Double
max
Maximal scale value. |
System.Double
absoluteValue
Absolute value. |
Returns
System.Double
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
GraphicScale
scale
Scale object. |
System.Int32
majorTickIndex
MajorTick index. |
System.Int32
middleTickIndex
MiddleTick index. |
System.Int32
minorTickIndex
MinorTick index. |
Returns
System.Double
Absolute value at the tick position. |