Class
EightPositionsLabelsStrategy

Represents a Fast Algorithm for Label Placement implementation for the RadChartView labels with 8 possible label positions.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.ChartView.dll

Syntax:

cs-api-definition
public class EightPositionsLabelsStrategy : FourPositionsLabelsStrategy

Inheritance: objectSmartLabelsStrategyBaseFourPositionsLabelsStrategyEightPositionsLabelsStrategy

Inherited Members FourPositionsLabelsStrategy.CalculateLocations(ChartSeriesCollection, Rectangle)FourPositionsLabelsStrategy.BuildAdjacencyMatrix(ChartSeriesCollection)FourPositionsLabelsStrategy.MaximumNonconflict()FourPositionsLabelsStrategy.AssignMinimumOverlapLabels()FourPositionsLabelsStrategy.LocalOptimization()FourPositionsLabelsStrategy.AssignSmartRectangles(ChartSeriesCollection)FourPositionsLabelsStrategy.GetAllLabelPositions(LabelElement)FourPositionsLabelsStrategy.IsFinalSolution()FourPositionsLabelsStrategy.IsMatrixEmpty()FourPositionsLabelsStrategy.HasUnassignedLabels()SmartLabelsStrategyBase.DistanceToLabel

Constructors

EightPositionsLabelsStrategy()

Declaration

cs-api-definition
public EightPositionsLabelsStrategy()

Properties

PositionsPerLabel

Gets or sets the number of label positions the strategy will serach in.

Declaration

cs-api-definition
protected override int PositionsPerLabel { get; }

Property Value

int

Overrides FourPositionsLabelsStrategy.PositionsPerLabel

Methods

GetLabelLineSide(int)

Gets the label LineSide corresponding to the label position.

Declaration

cs-api-definition
protected override LineSide GetLabelLineSide(int labelPosition)

Parameters

labelPosition

int

The label position.

Returns

LineSide

Overrides FourPositionsLabelsStrategy.GetLabelLineSide(int)

GetLabelRectangle(LabelElement, int)

Gets the label rectangle from its position.

Declaration

cs-api-definition
protected override Rectangle GetLabelRectangle(LabelElement label, int labelPosition)

Parameters

label

LabelElement

The label.

labelPosition

int

The label position.

Returns

Rectangle

Overrides FourPositionsLabelsStrategy.GetLabelRectangle(LabelElement, int)