Class KonceptSvgRenderer
java.lang.Object
network.ike.docs.koncept.KonceptSvgRenderer
Generates inline SVG badge markup for Koncept references.
The badge renders as a compact, clickable pill that links to the glossary anchor for the
referenced Koncept. The component-kind sigil (ike-issues#638) leads the badge: a coloured
letter (D/S/P/?) for description/semantic/pattern/unknown, the
locked StampSigilGeometry pentagon for a stamp (no name), and nothing for a bare concept.
SVG is used rather than HTML/CSS to ensure consistent rendering across HTML and PDF backends.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringrender(String target, String label, KonceptKind kind) Render an inline SVG badge for a Koncept reference, honest about its kind.static StringrenderStampSigil(String target, String label) Render the STAMP kind sigil: the locked gray pentagon (computed from the sharedStampSigilGeometry) as inline SVG — five asymmetric reading dots and a centre hub, no name.
-
Method Details
-
render
Render an inline SVG badge for a Koncept reference, honest about its kind.- Parameters:
target- the CamelCase koncept identifier (used for the anchor link)label- the human-readable display labelkind- the component kind;nullis treated asKonceptKind.CONCEPT- Returns:
- complete SVG+anchor HTML string suitable for inline passthrough
-
renderStampSigil
Render the STAMP kind sigil: the locked gray pentagon (computed from the sharedStampSigilGeometry) as inline SVG — five asymmetric reading dots and a centre hub, no name. The geometry is the same numbers the JavaFX node and the Java2D PNG use, so the pentagon is identical in every medium.The
labelis the caller-formatted, verbatim provenance string; this renderer only HTML-escapes it and never reformats or re-spells it. In particular the status token withinlabelmust already be the verbatim closed-vocabulary value (render closed vocabularies verbatim).- Parameters:
target- the CamelCase koncept identifier (used for the anchor link)label- the compact stamp text (status · date-time · author) shown beside the pentagon — provenance, in place of a name- Returns:
- complete SVG+anchor HTML string for the stamp pentagon + compact text
-