ClassChartRenderer
Provides the base implementation for chart rendering functionality, handling drawing operations and text measurement for chart elements.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.ChartView.dll
Syntax:
public class ChartRenderer : IChartRenderer
Inheritance: objectChartRenderer
Derived Classes:
Implements:
Constructors
ChartRenderer(ChartArea)
Initializes a new instance of the ChartRenderer class with the specified chart area.
Declaration
public ChartRenderer(ChartArea area)
Parameters
area
The chart area that this renderer will be associated with.
Properties
Methods
Draw(object)
Draws the chart using the specified rendering context.
Declaration
public virtual void Draw(object context)
Parameters
context
The graphics context used for rendering operations.
Implements
GetDistanceBetweenPoints(PointF, PointF)
Calculates the Euclidean distance between two points.
HitTest(int, int)
Performs hit testing to find the data point at the specified coordinates.
Initialize()
Initializes the renderer by setting up smart labels controller and calculating label positions if available.
Declaration
protected virtual void Initialize()
Invalidate(object)
Invalidates the specified model to trigger a redraw operation.
Declaration
public virtual void Invalidate(object model)
Parameters
model
The model object to invalidate.
Implements
MeasureRotatedLabels(string, object, double)
Measures the size of rotated text labels considering the rotation angle.
Declaration
public virtual RadSize MeasureRotatedLabels(string text, object context, double rotationAngle)
Parameters
text
The text to measure.
context
The font context used for measurement.
rotationAngle
The rotation angle in degrees.
Returns
A RadSize representing the measured dimensions of the rotated text.
Implements
MeasureText(string, object)
Measures the size of the specified text using the provided font context.
ToRectangleF(RadRect)
Converts a RadRect to a RectangleF.
Declaration
public static RectangleF ToRectangleF(RadRect rect)
Parameters
rect
The RadRect to convert.
Returns
A RectangleF with equivalent dimensions.