java.lang.Object
com.inductiveautomation.ignition.client.icons.SvgIconUtil

public class SvgIconUtil extends Object
  • Method Details

    • getIcon

      public static Icon getIcon(String name)
      Gets the svg matching the supplied name without extension from the 'images/svgicons' resource dir at 16x16.
    • getIcon

      public static Icon getIcon(String name, int width, int height)
      Gets the svg matching the supplied name without extension from the 'images/svgicons' resource dir at width x height.
    • getIcon

      public static Icon getIcon(Class relativeClass, String name)
    • getIcon

      public static Icon getIcon(Class relativeClass, String name, int width, int height)
    • getSvgIcon

      public static Icon getSvgIcon(Class relativeClass, String path, int width, int height)
      Retrieves an svg icon located in the specified class's *.jar file. It attempts to load the image by looking for it at: "/images/svgicons/path.svg". May return null if the icon does not exist.
    • getDocument

      public static org.w3c.dom.svg.SVGDocument getDocument(Class relativeClass, String filePath)