Class LineRenderer
- Namespace
- FlowGraph.Avalonia.Rendering.ShapeRenderers
- Assembly
- FlowGraph.Avalonia.dll
Renderer for line shape elements. Uses logical (unscaled) dimensions - MatrixTransform handles zoom.
public class LineRenderer : IShapeRenderer
- Inheritance
-
LineRenderer
- Implements
- Inherited Members
Methods
CreateShapeVisual(ShapeElement, ShapeRenderContext)
Creates the visual representation for a shape element.
public Control CreateShapeVisual(ShapeElement shape, ShapeRenderContext context)
Parameters
shapeShapeElementThe shape element to render.
contextShapeRenderContextThe rendering context with theme, scale, and settings.
Returns
- Control
A Control representing the shape visual.
UpdateSelection(Control, ShapeElement, ShapeRenderContext)
Updates the visual state when selection changes.
public void UpdateSelection(Control visual, ShapeElement shape, ShapeRenderContext context)
Parameters
visualControlThe shape's visual control.
shapeShapeElementThe shape element.
contextShapeRenderContextThe rendering context.
UpdateVisual(Control, ShapeElement, ShapeRenderContext)
Updates an existing visual when the shape's properties change.
public void UpdateVisual(Control visual, ShapeElement shape, ShapeRenderContext context)
Parameters
visualControlThe shape's visual control.
shapeShapeElementThe shape element with updated data.
contextShapeRenderContextThe rendering context.