Table of Contents

Class InputNodeRenderer

Namespace
FlowGraph.Avalonia.Rendering.NodeRenderers
Assembly
FlowGraph.Avalonia.dll

Renderer for input nodes with a distinctive green color scheme. Displays a ">" icon and supports inline label editing.

public class InputNodeRenderer : StyledNodeRendererBase, IEditableNodeRenderer, INodeRenderer
Inheritance
InputNodeRenderer
Implements
Inherited Members

Properties

DefaultLabel

Gets the default label when no label or data is set.

protected override string DefaultLabel { get; }

Property Value

string

IconGeometry

Gets the geometry for a vector icon. This takes precedence over IconText. Use this to integrate with any icon library (Lucide, Material, FontAwesome, etc.) by providing the icon's path data.

// Simple arrow icon
protected override Geometry? IconGeometry => 
    Geometry.Parse("M5 12h14M12 5l7 7-7 7");

// Or use a static geometry for better performance
private static readonly Geometry _icon = Geometry.Parse("M5 12h14");
protected override Geometry? IconGeometry => _icon;
protected override Geometry? IconGeometry { get; }

Property Value

Geometry

Methods

GetIconForeground(ThemeResources)

Gets the icon foreground brush for this node type.

protected override IBrush GetIconForeground(ThemeResources theme)

Parameters

theme ThemeResources

Returns

IBrush

GetNodeBackground(ThemeResources)

Gets the background brush for this node type.

protected override IBrush GetNodeBackground(ThemeResources theme)

Parameters

theme ThemeResources

Returns

IBrush

GetNodeBorder(ThemeResources)

Gets the border brush for this node type (when not selected).

protected override IBrush GetNodeBorder(ThemeResources theme)

Parameters

theme ThemeResources

Returns

IBrush

GetTextForeground(ThemeResources)

Gets the text foreground brush for this node type.

protected override IBrush GetTextForeground(ThemeResources theme)

Parameters

theme ThemeResources

Returns

IBrush