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.

Definition

Namespace:Telerik.Windows.Controls.Gauge

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

cs-api-definition
public interface IValueDistribution

Methods

CalculateScaleMetrics(GraphicScale)

Calculate scale specific metrics which can be used to perform other calculations.

Declaration

cs-api-definition
void CalculateScaleMetrics(GraphicScale scale)

Parameters

scale

GraphicScale

Scale object.

GetAbsoluteValue(double, double, double)

Gets absolute value for given relative value.

Declaration

cs-api-definition
double GetAbsoluteValue(double min, double max, double relativeValue)

Parameters

min

double

Minimal scale value.

max

double

Maximal scale value.

relativeValue

double

Relative value.

Returns

double

Absolute value.

GetRelativeValue(double, double, double)

Gets relative value for given absolute value.

Declaration

cs-api-definition
double GetRelativeValue(double min, double max, double absoluteValue)

Parameters

min

double

Minimal scale value.

max

double

Maximal scale value.

absoluteValue

double

Absolute value.

Returns

double

Relative value.

GetValueAtTick(GraphicScale, int, int, int)

Get value at the tick position.

Declaration

cs-api-definition
double GetValueAtTick(GraphicScale scale, int majorTickIndex, int middleTickIndex, int minorTickIndex)

Parameters

scale

GraphicScale

Scale object.

majorTickIndex

int

MajorTick index.

middleTickIndex

int

MiddleTick index.

minorTickIndex

int

MinorTick index.

Returns

double

Absolute value at the tick position.