ClassContainerVisualsFactory
This factory helps preparing the ContainerVisual that will be used for the rendering of the Chart control. It creates new ContainerVisual instances and position them on the Chart's Canvas.
Definition
Namespace:Telerik.UI.Xaml.Controls.Chart
Assembly:Telerik.WinUI.Controls.dll
Syntax:
public class ContainerVisualsFactory
Inheritance: objectContainerVisualsFactory
Constructors
ContainerVisualsFactory()
Declaration
public ContainerVisualsFactory()
Methods
CanDrawContainerVisual(PresenterBase)
Indicates whether the visual can be drawn using the Composition API.
Declaration
protected virtual bool CanDrawContainerVisual(PresenterBase visualElement)
Parameters
visualElement
The visual element that needs to be drawn.
Returns
Return true if the visual element does not have set Styles and Templates - returns false if it has.
CreateContainerVisual(Compositor, Type)
Creates a new ContainerVisual instance.
Declaration
protected virtual ContainerVisual CreateContainerVisual(Compositor compositor, Type elementType)
Parameters
compositor
Compositor
The Compositor that creates the visual objects.
elementType
The Type of the element for which ContainerVisual is created.
Returns
ContainerVisual
A new instance of the class.
PrepareBarIndicatorVisual(ContainerVisual, DataPoint)
Prepares the ContainerVisual used for the visualization of the BarIndicatorBase by setting its Size, Color and Offset.
Declaration
protected virtual ContainerVisual PrepareBarIndicatorVisual(ContainerVisual containerVisual, DataPoint dataPoint)
Parameters
containerVisual
ContainerVisual
The ContainerVisual that is used by the Compositor API.
dataPoint
The DataPoint used for the calculation of the Size and Offset of the ContainerVisual.
Returns
ContainerVisual
PrepareCartesianAxisLineVisual(CartesianAxis, ContainerVisual, RadRect, AxisType)
Prepares the ContainerVisual used for the visualization of the Axis's Lines by setting its Size, Color and Offset.
Declaration
protected virtual ContainerVisual PrepareCartesianAxisLineVisual(CartesianAxis axis, ContainerVisual lineContainer, RadRect layoutSlot, AxisType axisType = AxisType.First)
Parameters
axis
The CartesianAxis that will be visualized.
lineContainer
ContainerVisual
The ContainerVisual that is used by the Composition API.
layoutSlot
A Rectangle in the Euclidean plane geometry used for the Size and Offset of the ContainerVisual.
axisType
The AxisType of the Axis's line.
Returns
ContainerVisual
PrepareCartesianChartGridLineVisual(ContainerVisual, RadRect, Orientation, DoubleCollection)
Prepares the ContainerVisual used for the visualization of the lines of the CartesianChartGrid by setting its Size, Color and Offset.
Declaration
protected virtual ContainerVisual PrepareCartesianChartGridLineVisual(ContainerVisual containerVisual, RadRect layoutSlot, Orientation orientation, DoubleCollection dashArray)
Parameters
containerVisual
ContainerVisual
The ContainerVisual that is used by the Composition API.
layoutSlot
A Rectangle in the Euclidean plane geometry used for the Size and Offset of the ContainerVisual.
orientation
Orientation
The orientation of the CharGrid's line.
dashArray
DoubleCollection
An array of doubles used for positioning of the dashes of the CharGrid's line.
Returns
ContainerVisual
PrepareLineRenderVisual(ContainerVisual, IEnumerable<Point>, Brush, double)
Prepares the ContainerVisual used for the visualization of the line indicators by setting its Size, Color and Offset.
Declaration
protected virtual ContainerVisual PrepareLineRenderVisual(ContainerVisual containerVisual, IEnumerable<Point> points, Brush stroke, double strokeThickness)
Parameters
containerVisual
ContainerVisual
The ContainerVisual that is used by the Compositor API.
points
IEnumerable<Point>
The Point used for the calculation of the Size and Offset of the ContainerVisual.
stroke
Brush
The stroke set to the ContainerVisual and used by its color brush.
strokeThickness
The thickness of the stroke.
Returns
ContainerVisual
PreparePointTemplateSeriesVisual(ContainerVisual, DataPoint)
Prepares the ContainerVisual used for the visualization of the PointTemplateSeries by setting its Size, Color and Offset.
Declaration
protected virtual ContainerVisual PreparePointTemplateSeriesVisual(ContainerVisual containerVisual, DataPoint dataPoint)
Parameters
containerVisual
ContainerVisual
The ContainerVisual that is used by the Compositor API.
dataPoint
The DataPoint used for the calculation of the Size and Offset of the ContainerVisual.
Returns
ContainerVisual
PrepareTickVisual(ContainerVisual, RadRect)
Prepares the ContainerVisual used for the visualization of the ticks by setting its Size, Color and Offset.
Declaration
protected virtual ContainerVisual PrepareTickVisual(ContainerVisual containerVisual, RadRect layoutSlot)
Parameters
containerVisual
ContainerVisual
The ContainerVisual that is used by the Composition API.
layoutSlot
A Rectangle in the Euclidean plane geometry used for the Size and Offset of the ContainerVisual.
Returns
ContainerVisual