Class PieTwoLabelColumnsStrategy
Represents a smart labels strategy for a pie chart that places labels in two horizontal columns of the chart without them overlapping.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.ChartView.dll
Syntax
public class PieTwoLabelColumnsStrategy : SmartLabelsStrategyBase
Constructors
PieTwoLabelColumnsStrategy()
Declaration
public PieTwoLabelColumnsStrategy()
Properties
DistanceBetweenLabels
Gets or sets the distance between labels.
Declaration
public int DistanceBetweenLabels { get; set; }
Property Value
System. 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
Chart All the series in the current chart view. |
System. 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
System. The labels. |
System. The plot area. |
Returns
Pie 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
Pie The series. |
Label The label. |
System. The angle. |
Returns
System.
|
OptimizeBottomUp(List<LabelElement>, Rectangle, Boolean)
Begind the optimization from the bottom and proceeds up.
Declaration
protected virtual void OptimizeBottomUp(List<LabelElement> labels, Rectangle plotArea, bool isLeftColumn)
Parameters
System. The labels. |
System. The plot area. |
System. Indicates whether the left column is processed |
OptimizeCenterUpAndDown(List<LabelElement>, Rectangle, Boolean)
Begind the optimization from the center and proceeds up and down.
Declaration
protected virtual void OptimizeCenterUpAndDown(List<LabelElement> labels, Rectangle plotArea, bool isLeftColumn)
Parameters
System. The labels. |
System. The plot area. |
System. Indicates whether the left column is processed |
OptimizeColumnPositions(List<LabelElement>, Rectangle, Boolean)
Optimizes the labels positions in the two columns.
Declaration
protected virtual void OptimizeColumnPositions(List<LabelElement> column, Rectangle plotArea, bool isLeftColumn)
Parameters
System. The column. |
System. The plot area. |
System. Indicates whether the left column is processed |
OptimizeTopDown(List<LabelElement>, Rectangle, Boolean)
Begind the optimization from the top and proceeds down.
Declaration
protected virtual void OptimizeTopDown(List<LabelElement> labels, Rectangle plotArea, bool isLeftColumn)
Parameters
System. The labels. |
System. The plot area. |
System. Indicates whether the left column is processed |
ToRectangleF(RadRect)
Converts a Rad
Declaration
public Rectangle ToRectangleF(RadRect rect)
Parameters
Rad The rect. |
Returns
System.
|