Package ai.mindconnect.ui.ext.diagram
Class UiDiagramNode
java.lang.Object
ai.mindconnect.ui.ext.diagram.UiDiagramNode
One vertex of a
UiDiagram. Note that UiDiagramNode is
not a UiNode subtype: it is an internal piece of a diagram
and never rendered at the top level of the SUI tree.
Shape vs. styling
shape picks the geometry (rectangle, circle, diamond)
and is constrained to identifiers the front-end renderer knows about
(see UiDiagramShape for the built-in primitives, or any name a
consumer registered via the JS registerShape() API). Everything
domain-specific — colour, marker, "double border" — is layered on top
via shapeClass, marker, and borderWidth.
Two flavours coexist in the same list, distinguished by synthetic:
- Source nodes (
synthetic = false) — back a real domain object.stepRef(or the equivalent in non-workflow domains) carries the unique reference so editors can resolve clicks. - Synthetic nodes (
synthetic = true) — render-time scaffolding (start, end, merge, fork, join). Editors must treat these as non-deletable.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddChild(UiDiagramNode child) Adds a child node and returns this for fluent chaining.static UiDiagramNodeFactory shortcut:id,shape,labelin one call.withBorderWidth(int width) SetsborderWidthand returns this for fluent chaining.withMarker(String marker) Setsmarkerand returns this for fluent chaining.withShapeClass(String cls) SetsshapeClassand returns this for fluent chaining.withSize(int width, int height) Setswidth+heighttogether and returns this.
-
Constructor Details
-
UiDiagramNode
public UiDiagramNode()
-
-
Method Details
-
put
-
withShapeClass
SetsshapeClassand returns this for fluent chaining. -
withMarker
Setsmarkerand returns this for fluent chaining. -
withBorderWidth
SetsborderWidthand returns this for fluent chaining. -
withSize
Setswidth+heighttogether and returns this. -
addChild
Adds a child node and returns this for fluent chaining. -
of
Factory shortcut:id,shape,labelin one call. The shape is a free string — pass aUiDiagramShapeconstant for the built-ins.
-