Class SwingSvgImageUtil


  • public class SwingSvgImageUtil
    extends Object
    Class for loading images from SVG, PNG, or other bitmap formats. Logic is: if SVG is enabled, then SVG icon loaded if exist. Otherwise, class trying to change name into PNG and try to load. If initial name is PNG, then PNG icon will be loaded.
    • Constructor Detail

      • SwingSvgImageUtil

        public SwingSvgImageUtil()
    • Method Detail

      • getImageAsResource

        public static org.pentaho.di.core.SwingUniversalImage getImageAsResource​(String location)
        Load image from several sources.
      • getUniversalImage

        public static org.pentaho.di.core.SwingUniversalImage getUniversalImage​(ClassLoader classLoader,
                                                                                String filename)
        Load image from several sources.
      • getImage

        public static org.pentaho.di.core.SwingUniversalImage getImage​(String location)
        Load image from several sources.