Class KonceptSvgRenderer

java.lang.Object
network.ike.docs.koncept.KonceptSvgRenderer

public final class KonceptSvgRenderer extends Object
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 Details

    • render

      public static String render(String target, String label, KonceptKind kind)
      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 label
      kind - the component kind; null is treated as KonceptKind.CONCEPT
      Returns:
      complete SVG+anchor HTML string suitable for inline passthrough
    • renderStampSigil

      public static String renderStampSigil(String target, String label)
      Render the STAMP kind sigil: the locked gray pentagon (computed from the shared StampSigilGeometry) 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 label is the caller-formatted, verbatim provenance string; this renderer only HTML-escapes it and never reformats or re-spells it. In particular the status token within label must 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