Class
SmartLabelsController

Creates a new instance of SmartLabelsController which handles the smart labels placement in RadChartView.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.ChartView.dll

Syntax:

cs-api-definition
public class SmartLabelsController : ChartViewController, INotifyPropertyChanged

Inheritance: objectControllerChartViewControllerSmartLabelsController

Implements: INotifyPropertyChanged

Inherited Members ChartViewController.OnDraw(EventArgs)ChartViewController.OnMouseDown(MouseEventArgs)ChartViewController.OnMouseCaptureChanged(EventArgs)ChartViewController.OnMouseClick(MouseEventArgs)ChartViewController.OnMouseDoubleClick(MouseEventArgs)ChartViewController.OnMouseEnter(EventArgs)ChartViewController.OnMouseHover(EventArgs)ChartViewController.OnMouseLeave(EventArgs)ChartViewController.OnMouseMove(MouseEventArgs)ChartViewController.OnMouseUp(MouseEventArgs)ChartViewController.OnMouseWheel(MouseEventArgs)ChartViewController.OnKeyDown(KeyEventArgs)ChartViewController.OnKeyPress(KeyPressEventArgs)ChartViewController.OnKeyUp(KeyEventArgs)ChartViewController.OnGesture(GestureEventArgs)ChartViewController.OnZoomGesture(ZoomGestureEventArgs)ChartViewController.OnRotateGesture(RotateGestureEventArgs)ChartViewController.OnPanGesture(PanGestureEventArgs)ChartViewController.OnTwoFingerTapGesture(GestureEventArgs)ChartViewController.OnPressAndTapGesture(PressAndTapGestureEventArgs)ChartViewController.ExecuteCore(object, object)ChartViewController.ViewChartViewController.AreaController.EmptyController.OnPropertyChanged(string)Controller.ProcessNextController.PropertyChanged

Constructors

SmartLabelsController()

Initializes a new instance of the SmartLabelsController class.

Declaration

cs-api-definition
public SmartLabelsController()

Properties

Strategy

Gets or sets the strategy used for resolving label collisions.

Declaration

cs-api-definition
public SmartLabelsStrategyBase Strategy { get; set; }

Property Value

SmartLabelsStrategyBase

The strategy.

Methods

CalculateLabelsPositions(ChartSeriesCollection, Rectangle)

Calculates the labels positions using the current strategy.

Declaration

cs-api-definition
public virtual void CalculateLabelsPositions(ChartSeriesCollection series, Rectangle plotArea)

Parameters

series

ChartSeriesCollection

All the series in the chart view.

plotArea

Rectangle

The plot area.

ControllerAdded(ChartView)

This method is called when the controller is added to the controllers collection of an area.

Declaration

cs-api-definition
protected override void ControllerAdded(ChartView view)

Parameters

view

ChartView

The view.

Overrides ChartViewController.ControllerAdded(ChartView)

ControllerRemoved()

This method is called when the controller is removed from the controllers collection of an area.

Declaration

cs-api-definition
protected override void ControllerRemoved()

Overrides ChartViewController.ControllerRemoved()

GetDefaultStrategy(ChartArea)

Gets the default strategy for a given area type.

Declaration

cs-api-definition
protected virtual SmartLabelsStrategyBase GetDefaultStrategy(ChartArea area)

Parameters

area

ChartArea

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

cs-api-definition
public virtual void RegisterCustomStrategyWithSeries(Type type, List<Type> series = null)

Parameters

type

Type

series

List<Type>

UpdateDefaultStrategies(Type)

Declaration

cs-api-definition
protected virtual void UpdateDefaultStrategies(Type newStrategy)

Parameters

newStrategy

Type