Enum IconPack.Variant

    • Enum Constant Detail

      • NONE

        public static final IconPack.Variant NONE
        "None" variant, i.e. either no variant is preferred or the source icon is known not to have variants.

        An icon pack may choose to load a different variant than "none" if it deems it appropriate to do so.

      • NORMAL

        public static final IconPack.Variant NORMAL
        "Normal" variant, i.e. the icon which should be displayed in a button's default state.
      • DISABLED

        public static final IconPack.Variant DISABLED
        "Disabled" variant to be displayed whenever a button/component is marked as disabled.
      • ROLLOVER

        public static final IconPack.Variant ROLLOVER
        "Rollover" variant to be displayed when the mouse cursors hovers a component/button.
      • PRESSED

        public static final IconPack.Variant PRESSED
        "Pressed" variant to be displayed when a button is pressed.
      • SELECTED

        public static final IconPack.Variant SELECTED
        "Selected" variant to be displayed when a toggleable component is marked as selected.
    • Method Detail

      • values

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

        public static IconPack.Variant 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