Class AsciiDocIcon

java.lang.Object
pro.verron.asciidoc.converters.svg.AsciiDocIcon

public final class AsciiDocIcon extends Object

Provides SVG paths for icons used in simulated editor interfaces. Icons are sourced from Bootstrap Icons (MIT License).

Icon path data is lazily loaded from individual SVG resource files in the icons/ package directory and cached on first access.

  • Method Details

    • findIcon

      public static Optional<SvgGroup> findIcon(Icon icon, int x, int y, int size, String color)
      Finds an icon and returns it as an SVG group model. The icon's path data is loaded from its resource file on first access and cached for subsequent calls.
      Parameters:
      icon - the icon identifier
      x - x coordinate
      y - y coordinate
      size - icon size (width and height)
      color - icon color
      Returns:
      an Optional containing the SvgGroup for the icon, or empty if the resource could not be found