Class CommonImageUtilities


  • public final class CommonImageUtilities
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.awt.Image findIcon​(java.lang.Object bean)  
      static java.awt.Image findIcon​(java.lang.Object bean, int iconKind)  
      static java.awt.Image findIcon​(java.lang.Object bean, int iconKind, boolean addBadges)  
      static javax.swing.Icon getCircleStepIcon​(int index)
      Get icon with step number.
      static javax.swing.Icon getErrorIcon()
      Get error icon.
      static java.awt.Image getIcon​(java.lang.String resource)  
      static java.awt.Image getSchemaIcon​(int schemaTypeIndex, boolean connected, boolean shared)  
      static java.lang.String getSchemaIconResource​(int schemaTypeIndex, boolean connected, boolean shared)  
      static javax.swing.ImageIcon getUserIcon()  
      static javax.swing.ImageIcon getWaitIcon()
      Get waiting icon.
      static javax.swing.Icon getWarningIcon()
      Get warning icon.
      static void resetIconCache()  
      • Methods inherited from class java.lang.Object

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

      • resetIconCache

        public static void resetIconCache()
      • getIcon

        public static java.awt.Image getIcon​(java.lang.String resource)
      • findIcon

        public static java.awt.Image findIcon​(java.lang.Object bean)
        Returns:
        An image object representing the ICON_COLOR_16x16 icon. May return null if no suitable icon is available.
      • findIcon

        public static java.awt.Image findIcon​(java.lang.Object bean,
                                              int iconKind)
        Parameters:
        iconKind - The kind of icon requested. This should be one of the constant values ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, or ICON_MONO_32x32 (see BeanInfo)
        Returns:
        An image object representing the requested icon. May return null if no suitable icon is available.
      • findIcon

        public static java.awt.Image findIcon​(java.lang.Object bean,
                                              int iconKind,
                                              boolean addBadges)
      • getSchemaIconResource

        public static java.lang.String getSchemaIconResource​(int schemaTypeIndex,
                                                             boolean connected,
                                                             boolean shared)
      • getSchemaIcon

        public static java.awt.Image getSchemaIcon​(int schemaTypeIndex,
                                                   boolean connected,
                                                   boolean shared)
      • getCircleStepIcon

        public static javax.swing.Icon getCircleStepIcon​(int index)
        Get icon with step number.
        Parameters:
        index - number of step.
        Returns:
        circle icon with step number.
      • getErrorIcon

        public static javax.swing.Icon getErrorIcon()
        Get error icon. Mostly used in error labels.
        Returns:
        error icon.
      • getWarningIcon

        public static javax.swing.Icon getWarningIcon()
        Get warning icon. Mostly used in error labels.
        Returns:
        warning icon.
      • getWaitIcon

        public static javax.swing.ImageIcon getWaitIcon()
        Get waiting icon.
        Returns:
        waiting icon.
      • getUserIcon

        public static javax.swing.ImageIcon getUserIcon()