Interface SVGLoader


public interface SVGLoader
SVG image loader. This is an optional service provider. If implemented, a single instance should be placed in the default lookup (e.g. via the ServiceProvider annotation).
Since:
9.15
  • Method Summary

    Modifier and Type
    Method
    Description
    Load an SVG image as an Icon.
  • Method Details

    • loadIcon

      Icon loadIcon(URL url) throws IOException
      Load an SVG image as an Icon. The SVG document's root element must contain explicit width/height attributes.
      Parameters:
      url - may not be null
      Returns:
      may not be null
      Throws:
      IOException - in case of loading or parsing errors