Class SmartLabelsController
Creates a new instance of SmartLabelsController which handles the smart labels placement in RadChartView.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.ChartView.dll
Syntax
public class SmartLabelsController : ChartViewController, INotifyPropertyChanged
Constructors
SmartLabelsController()
Initializes a new instance of the SmartLabelsController class.
Declaration
public SmartLabelsController()
Properties
Strategy
Gets or sets the strategy used for resolving label collisions.
Declaration
public SmartLabelsStrategyBase Strategy { get; set; }
Property Value
SmartLabelsStrategyBase
The strategy. |
Methods
CalculateLabelsPositions(ChartSeriesCollection, Rectangle)
Calculates the labels positions using the current strategy.
Declaration
public virtual void CalculateLabelsPositions(ChartSeriesCollection series, Rectangle plotArea)
Parameters
ChartSeriesCollection
series
All the series in the chart view. |
System.Drawing.Rectangle
plotArea
The plot area. |
ControllerAdded(ChartView)
This method is called when the controller is added to the controllers collection of an area.
Declaration
protected override void ControllerAdded(ChartView view)
Parameters
ChartView
view
The view. |
Overrides
ControllerRemoved()
This method is called when the controller is removed from the controllers collection of an area.
Declaration
protected override void ControllerRemoved()
Overrides
GetDefaultStrategy(ChartArea)
Gets the default strategy for a given area type.
Declaration
protected virtual SmartLabelsStrategyBase GetDefaultStrategy(ChartArea area)
Parameters
ChartArea
area
The area. |
Returns
SmartLabelsStrategyBase
The default strategy for the given area. |
RegisterCustomStrategyWithSeries(Type, List<Type>)
Registers a custom strategy with a list of compatible series. Custom strategies inheriting the FourPositionsLabelsStrategy, EightPositionsLabelsStrategy, PieTwoLabelColumnsStrategy, or the VerticalAdjusmentLabelsStrategy strategy may not be registered as they can use the compatible series for their base type.
Declaration
public virtual void RegisterCustomStrategyWithSeries(Type type, List<Type> series = null)
Parameters
System.Type
type
|
System.Collections.Generic.List<System.Type>
series
|
UpdateDefaultStrategies(Type)
Declaration
protected virtual void UpdateDefaultStrategies(Type newStrategy)
Parameters
System.Type
newStrategy
|