Enum IconSize

    • Method Detail

      • values

        public static IconSize[] 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 (IconSize c : IconSize.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static IconSize valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getIconSize

        public static IconSize getIconSize​(String name)
        Finds the most appropriate icon size for a particular configuration value. The symbolic names (s, m, l and xl) are preferred.
        Parameters:
        name - a symbolic icon size name (case insensitive) or an integer size value.
        Returns:
        the most appropriate icon size: either the exact matching one, or the first icon size that is equal to or bigger than the given integer size.
      • getSize

        public int getSize()