Class IconUtil


  • public class IconUtil
    extends java.lang.Object
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  IconUtil.Size  
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static javax.swing.ImageIcon applyBadge​(javax.swing.Icon base, javax.swing.Icon badge)  
      static java.awt.geom.GeneralPath getCheckPath()
      Returns the Ignition checkmark logo as a GeneralPath, unless this build is a white label build, in which case it returns null.
      static javax.swing.Icon getDisabled​(javax.swing.Icon icon)  
      static javax.swing.Icon getFocused​(javax.swing.Icon icon)  
      static javax.swing.ImageIcon getGlyphIcon​(java.lang.String number, java.lang.String name, int size)  
      static javax.swing.ImageIcon getIcon​(java.lang.String name)  
      static javax.swing.ImageIcon getIcon​(java.lang.String name, IconUtil.Size size)  
      static javax.swing.ImageIcon getIcon​(java.lang.String name, java.lang.String category)
      Deprecated.
      static javax.swing.ImageIcon getIcon​(java.lang.String name, java.lang.String category, IconUtil.Size size)
      Deprecated.
      static javax.swing.ImageIcon getIcon​(java.lang.String name, java.lang.String category, java.lang.String size)
      Deprecated.
      static javax.swing.ImageIcon getIcon​(java.lang.String name, java.lang.String category, java.lang.String size, java.lang.String style)
      Deprecated.
      static javax.swing.ImageIcon getRootIcon​(java.lang.Class relativeClass, java.lang.String path)
      Retrieves an image located in the specified class's *.jar file.
      static javax.swing.ImageIcon getRootIcon​(java.lang.String path)
      Loads the image found at /images/{path}
      static javax.swing.ImageIcon getRootIconScaled​(java.lang.Class relativeClass, java.lang.String path, int size)  
      static javax.swing.ImageIcon getRootIconScaled​(java.lang.String path, int size)  
      static javax.swing.Icon getSelected​(javax.swing.Icon icon)  
      static javax.swing.ImageIcon scaleIcon​(java.lang.String iconName, int height, float opacity)  
      static javax.swing.ImageIcon scaleIcon​(java.lang.String iconName, IconUtil.Size size, int height, float opacity)  
      static javax.swing.Icon scaleIcon​(javax.swing.Icon icon, int height, float opacity)  
      static javax.swing.ImageIcon scaleIcon​(javax.swing.ImageIcon icon, int height, float opacity)
      Scales an icon to the given height.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getIcon

        @Deprecated
        public static javax.swing.ImageIcon getIcon​(java.lang.String name,
                                                    java.lang.String category)
        Deprecated.
        Categories are no longer used
      • getIcon

        @Deprecated
        public static javax.swing.ImageIcon getIcon​(java.lang.String name,
                                                    java.lang.String category,
                                                    java.lang.String size)
        Deprecated.
        Categories are no longer used.
      • getIcon

        @Deprecated
        public static javax.swing.ImageIcon getIcon​(java.lang.String name,
                                                    java.lang.String category,
                                                    IconUtil.Size size)
        Deprecated.
        Categories are no longer used.
      • getIcon

        @Deprecated
        public static javax.swing.ImageIcon getIcon​(java.lang.String name,
                                                    java.lang.String category,
                                                    java.lang.String size,
                                                    java.lang.String style)
        Deprecated.
        Categories are no longer used.
      • getIcon

        public static javax.swing.ImageIcon getIcon​(java.lang.String name)
      • getIcon

        public static javax.swing.ImageIcon getIcon​(java.lang.String name,
                                                    IconUtil.Size size)
      • getRootIcon

        public static javax.swing.ImageIcon getRootIcon​(java.lang.String path)
        Loads the image found at /images/{path}
      • getRootIconScaled

        public static javax.swing.ImageIcon getRootIconScaled​(java.lang.String path,
                                                              int size)
      • getRootIconScaled

        public static javax.swing.ImageIcon getRootIconScaled​(java.lang.Class relativeClass,
                                                              java.lang.String path,
                                                              int size)
      • getGlyphIcon

        public static javax.swing.ImageIcon getGlyphIcon​(java.lang.String number,
                                                         java.lang.String name,
                                                         int size)
      • getRootIcon

        public static javax.swing.ImageIcon getRootIcon​(java.lang.Class relativeClass,
                                                        java.lang.String path)
        Retrieves an image located in the specified class's *.jar file. It attempts to load the image by looking for it at: "/images/path"
      • scaleIcon

        public static javax.swing.Icon scaleIcon​(javax.swing.Icon icon,
                                                 int height,
                                                 float opacity)
      • scaleIcon

        public static javax.swing.ImageIcon scaleIcon​(javax.swing.ImageIcon icon,
                                                      int height,
                                                      float opacity)
        Scales an icon to the given height. The width will be proportional. Opacity can range from [0.0-transparent] to [1.0-opaque]
      • scaleIcon

        public static javax.swing.ImageIcon scaleIcon​(java.lang.String iconName,
                                                      int height,
                                                      float opacity)
      • scaleIcon

        public static javax.swing.ImageIcon scaleIcon​(java.lang.String iconName,
                                                      IconUtil.Size size,
                                                      int height,
                                                      float opacity)
      • applyBadge

        public static javax.swing.ImageIcon applyBadge​(javax.swing.Icon base,
                                                       javax.swing.Icon badge)
      • getSelected

        public static javax.swing.Icon getSelected​(javax.swing.Icon icon)
      • getFocused

        public static javax.swing.Icon getFocused​(javax.swing.Icon icon)
      • getDisabled

        public static javax.swing.Icon getDisabled​(javax.swing.Icon icon)
      • getCheckPath

        public static java.awt.geom.GeneralPath getCheckPath()
        Returns the Ignition checkmark logo as a GeneralPath, unless this build is a white label build, in which case it returns null.