Interface ISvgSpriteParser

All Superinterfaces:
Sprite
All Known Implementing Classes:
SvgNanoParser, SvgSaxParser

public interface ISvgSpriteParser extends Sprite
Contract for SVG sprite parsers used by PlantUML to render sprite content into a UGraphic.

Implementations are responsible for interpreting SVG content and drawing to the provided graphic context with scaling and color resolution applied.

Parsers are selected at runtime (for example via pragma) and may differ in feature support and rendering fidelity.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    drawU(UGraphic ug, double scale, HColor fontColor, HColor forcedColor)
    Render the sprite into the provided graphics context.

    Methods inherited from interface net.sourceforge.plantuml.klimt.sprite.Sprite

    asTextBlock
  • Method Details

    • drawU

      void drawU(UGraphic ug, double scale, HColor fontColor, HColor forcedColor)
      Render the sprite into the provided graphics context.
      Parameters:
      ug - the graphic context used for drawing
      scale - scale factor applied to the SVG content
      fontColor - default font color to use for text elements
      forcedColor - optional override color for monochrome rendering