Interface ISvgSpriteParser
- All Superinterfaces:
Sprite
- All Known Implementing Classes:
SvgNanoParser,SvgSaxParser
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
Methods inherited from interface net.sourceforge.plantuml.klimt.sprite.Sprite
asTextBlock
-
Method Details
-
drawU
Render the sprite into the provided graphics context.- Parameters:
ug- the graphic context used for drawingscale- scale factor applied to the SVG contentfontColor- default font color to use for text elementsforcedColor- optional override color for monochrome rendering
-