Table of Contents

Class CommentRenderer

Namespace
FlowGraph.Avalonia.Rendering.ShapeRenderers
Assembly
FlowGraph.Avalonia.dll

Renderer for comment (sticky note) elements. Creates a styled container with background, border, shadow, and text.

public class CommentRenderer : IShapeRenderer
Inheritance
CommentRenderer
Implements
Inherited Members

Methods

CreateShapeVisual(ShapeElement, ShapeRenderContext)

Creates the visual representation for a shape element.

public Control CreateShapeVisual(ShapeElement shape, ShapeRenderContext context)

Parameters

shape ShapeElement

The shape element to render.

context ShapeRenderContext

The 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

visual Control

The shape's visual control.

shape ShapeElement

The shape element.

context ShapeRenderContext

The 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

visual Control

The shape's visual control.

shape ShapeElement

The shape element with updated data.

context ShapeRenderContext

The rendering context.