Enum ImageResources

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ImageResources>

    public enum ImageResources
    extends java.lang.Enum<ImageResources>
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      INSTANCE  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String APPLICATION_ICON_PATH  
      private java.util.Map<java.lang.String,​java.awt.Image> cache  
      private static Logger LOG  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ImageResources()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void clearCache()  
      private java.awt.Image getApplicationImage()
      Returns an appropriate image, or null if there are errors loading the image.
      java.util.List<java.awt.Image> getApplicationImages()  
      static ImageResources valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static ImageResources[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • LOG

        private static final Logger LOG
      • APPLICATION_ICON_PATH

        private static final java.lang.String APPLICATION_ICON_PATH
        See Also:
        Constant Field Values
      • cache

        private final java.util.Map<java.lang.String,​java.awt.Image> cache
    • Constructor Detail

      • ImageResources

        private ImageResources()
    • Method Detail

      • values

        public static ImageResources[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ImageResources c : ImageResources.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ImageResources valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • clearCache

        void clearCache()
      • getApplicationImage

        private java.awt.Image getApplicationImage()
        Returns an appropriate image, or null if there are errors loading the image.
      • getApplicationImages

        public java.util.List<java.awt.Image> getApplicationImages()
        Returns:
        an appropriate image, or null if there are errors loading the image.