ClassPieTwoLabelColumnsStrategy
Represents a smart labels strategy for a pie chart that places labels in two horizontal columns of the chart without them overlapping.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.ChartView.dll
Syntax:
public class PieTwoLabelColumnsStrategy : SmartLabelsStrategyBase
Inheritance: objectSmartLabelsStrategyBasePieTwoLabelColumnsStrategy
Inherited Members
Constructors
PieTwoLabelColumnsStrategy()
Declaration
public PieTwoLabelColumnsStrategy()
Properties
DistanceBetweenLabels
Gets or sets the distance between labels.
Declaration
public int DistanceBetweenLabels { get; set; }
Property Value
The distance between labels.
Methods
CalculateLocations(ChartSeriesCollection, Rectangle)
Within this method labels' positions are calculated and are set to the SmartLocation property of each label.
Declaration
public override void CalculateLocations(ChartSeriesCollection series, Rectangle plotArea)
Parameters
series
All the series in the current chart view.
plotArea
The plot area.
Overrides
CalculateOverlaps(List<LabelElement>, Rectangle)
Calculates the overlaps of labels.
Declaration
protected virtual PieTwoLabelColumnsStrategy.ClusterizationInfo CalculateOverlaps(List<LabelElement> labels, Rectangle plotArea)
Parameters
labels
List<LabelElement>
The labels.
plotArea
The plot area.
Returns
PieTwoLabelColumnsStrategy.ClusterizationInfo
An object holding information on the labels collisions.
GetSmartLayoutSlot(PieSeries, LabelElement, double)
Gets the smart layout slot for a given label.
Declaration
protected virtual Rectangle GetSmartLayoutSlot(PieSeries series, LabelElement label, double angle)
Parameters
series
The series.
label
The label.
angle
The angle.
Returns
OptimizeBottomUp(List<LabelElement>, Rectangle, bool)
Begind the optimization from the bottom and proceeds up.
Declaration
protected virtual void OptimizeBottomUp(List<LabelElement> labels, Rectangle plotArea, bool isLeftColumn)
Parameters
labels
List<LabelElement>
The labels.
plotArea
The plot area.
isLeftColumn
Indicates whether the left column is processed true or the right one false.
OptimizeCenterUpAndDown(List<LabelElement>, Rectangle, bool)
Begind the optimization from the center and proceeds up and down.
Declaration
protected virtual void OptimizeCenterUpAndDown(List<LabelElement> labels, Rectangle plotArea, bool isLeftColumn)
Parameters
labels
List<LabelElement>
The labels.
plotArea
The plot area.
isLeftColumn
Indicates whether the left column is processed true or the right one false.
OptimizeColumnPositions(List<LabelElement>, Rectangle, bool)
Optimizes the labels positions in the two columns.
Declaration
protected virtual void OptimizeColumnPositions(List<LabelElement> column, Rectangle plotArea, bool isLeftColumn)
Parameters
column
List<LabelElement>
The column.
plotArea
The plot area.
isLeftColumn
Indicates whether the left column is processed true or the right one false.
OptimizeTopDown(List<LabelElement>, Rectangle, bool)
Begind the optimization from the top and proceeds down.
Declaration
protected virtual void OptimizeTopDown(List<LabelElement> labels, Rectangle plotArea, bool isLeftColumn)
Parameters
labels
List<LabelElement>
The labels.
plotArea
The plot area.
isLeftColumn
Indicates whether the left column is processed true or the right one false.
ToRectangleF(RadRect)
Converts a RadRect to a RectangleF.