Class OutputNodeRenderer
- Namespace
- FlowGraph.Avalonia.Rendering.NodeRenderers
- Assembly
- FlowGraph.Avalonia.dll
Renderer for output nodes with a distinctive red/coral color scheme. Displays a target/circle icon and supports inline label editing.
public class OutputNodeRenderer : StyledNodeRendererBase, IEditableNodeRenderer, INodeRenderer
- Inheritance
-
OutputNodeRenderer
- Implements
- Inherited Members
Properties
DefaultLabel
Gets the default label when no label or data is set.
protected override string DefaultLabel { get; }
Property Value
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
themeThemeResources
Returns
- IBrush
GetNodeBackground(ThemeResources)
Gets the background brush for this node type.
protected override IBrush GetNodeBackground(ThemeResources theme)
Parameters
themeThemeResources
Returns
- IBrush
GetNodeBorder(ThemeResources)
Gets the border brush for this node type (when not selected).
protected override IBrush GetNodeBorder(ThemeResources theme)
Parameters
themeThemeResources
Returns
- IBrush
GetTextForeground(ThemeResources)
Gets the text foreground brush for this node type.
protected override IBrush GetTextForeground(ThemeResources theme)
Parameters
themeThemeResources
Returns
- IBrush