Enum KnownColor

    • Enum Constant Detail

      • MAROON

        public static final KnownColor MAROON
        a color with a value of #800000
      • RED

        public static final KnownColor RED
        a color with a value of #FF0000
      • ORANGE

        public static final KnownColor ORANGE
        a color with a value of #FFA500
      • YELLOW

        public static final KnownColor YELLOW
        a color with a value of #FFFF00
      • OLIVE

        public static final KnownColor OLIVE
        a color with a value of #808000
      • PURPLE

        public static final KnownColor PURPLE
        a color with a value of #800080
      • FUCHSIA

        public static final KnownColor FUCHSIA
        a color with a value of #FF00FF
      • WHITE

        public static final KnownColor WHITE
        a color with a value of #FFFFFF
      • LIME

        public static final KnownColor LIME
        a color with a value of #00FF00
      • GREEN

        public static final KnownColor GREEN
        a color with a value of #008000
      • NAVY

        public static final KnownColor NAVY
        a color with a value of #000080
      • BLUE

        public static final KnownColor BLUE
        a color with a value of #0000FF
      • AQUA

        public static final KnownColor AQUA
        a color with a value of #00FFFF
      • TEAL

        public static final KnownColor TEAL
        a color with a value of #008080
      • BLACK

        public static final KnownColor BLACK
        a color with a value of #000000
      • SILVER

        public static final KnownColor SILVER
        a color with a value of #C0C0C0
      • GRAY

        public static final KnownColor GRAY
        a color with a value of #808080
    • Method Detail

      • values

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

        public static KnownColor 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
      • value

        public String value()