Class SmartLabelsController
Creates a new instance of Smart
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 Smart
Declaration
public SmartLabelsController()
Properties
Strategy
Gets or sets the strategy used for resolving label collisions.
Declaration
public SmartLabelsStrategyBase Strategy { get; set; }
Property Value
Smart The strategy. |
Methods
CalculateLabelsPositions(ChartSeriesCollection, Rectangle)
Calculates the labels positions using the current strategy.
Declaration
public virtual void CalculateLabelsPositions(ChartSeriesCollection series, Rectangle plotArea)
Parameters
Chart All the series in the chart view. |
System. 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
Chart 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
Chart The area. |
Returns
Smart 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
Four
Declaration
public virtual void RegisterCustomStrategyWithSeries(Type type, List<Type> series = null)
Parameters
System.
|
System.
|
UpdateDefaultStrategies(Type)
Declaration
protected virtual void UpdateDefaultStrategies(Type newStrategy)
Parameters
System.
|