java.lang.Object
javax.swing.ImageIcon
is.codion.swing.common.ui.icon.SVGIcon
All Implemented Interfaces:
Serializable, Accessible, Icon

public final class SVGIcon extends ImageIcon
A SVG based icon.
See Also:
  • Method Details

    • size

      public int size()
      Returns:
      the size
    • color

      public void color(Color color)
      Sets the icon color
      Parameters:
      color - the color
    • derive

      public SVGIcon derive(int size)
      Creates a derived copy of this icon using given size
      Parameters:
      size - the size
      Returns:
      a new icon
    • svgIcon

      public static SVGIcon svgIcon(URL svgIconUrl, int size, Color color)
      Instantiates a new SVGIcon
      Parameters:
      svgIconUrl - the svg icon resource url
      size - the size
      color - the color
      Returns:
      a new SVGIcon