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.Int32
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
ChartSeriesCollection
series
All the series in the current chart view. |
System.Drawing.Rectangle
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
System.Collections.Generic.List<LabelElement>
labels
The labels. |
System.Drawing.Rectangle
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
PieSeries
series
The series. |
LabelElement
label
The label. |
System.Double
angle
The angle. |
Returns
System.Drawing.Rectangle
|
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.Collections.Generic.List<LabelElement>
labels
The labels. |
System.Drawing.Rectangle
plotArea
The plot area. |
System.Boolean
isLeftColumn
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.Collections.Generic.List<LabelElement>
labels
The labels. |
System.Drawing.Rectangle
plotArea
The plot area. |
System.Boolean
isLeftColumn
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.Collections.Generic.List<LabelElement>
column
The column. |
System.Drawing.Rectangle
plotArea
The plot area. |
System.Boolean
isLeftColumn
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.Collections.Generic.List<LabelElement>
labels
The labels. |
System.Drawing.Rectangle
plotArea
The plot area. |
System.Boolean
isLeftColumn
Indicates whether the left column is processed |
ToRectangleF(RadRect)
Converts a RadRect to a RectangleF.
Declaration
public Rectangle ToRectangleF(RadRect rect)
Parameters
RadRect
rect
The rect. |
Returns
System.Drawing.Rectangle
|