Enum KnownColor

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

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

      Enum Constants 
      Enum Constant Description
      AQUA
      a color with a value of #00FFFF
      BLACK
      a color with a value of #000000
      BLUE
      a color with a value of #0000FF
      FUCHSIA
      a color with a value of #FF00FF
      GRAY
      a color with a value of #808080
      GREEN
      a color with a value of #008000
      LIME
      a color with a value of #00FF00
      MAROON
      a color with a value of #800000
      NAVY
      a color with a value of #000080
      OLIVE
      a color with a value of #808000
      ORANGE
      a color with a value of #FFA500
      PURPLE
      a color with a value of #800080
      RED
      a color with a value of #FF0000
      SILVER
      a color with a value of #C0C0C0
      TEAL
      a color with a value of #008080
      WHITE
      a color with a value of #FFFFFF
      YELLOW
      a color with a value of #FFFF00
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static KnownColor fromValue​(java.lang.String v)  
      java.lang.String value()  
      static KnownColor valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static KnownColor[] 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
    • 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​(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
      • value

        public java.lang.String value()
      • fromValue

        public static KnownColor fromValue​(java.lang.String v)