public enum KnownColor extends Enum<KnownColor>
Enum Constant and 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
|
Modifier and Type | Method and Description |
---|---|
static KnownColor |
fromValue(String v) |
String |
value() |
static KnownColor |
valueOf(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.
|
public static final KnownColor MAROON
public static final KnownColor RED
public static final KnownColor ORANGE
public static final KnownColor YELLOW
public static final KnownColor OLIVE
public static final KnownColor PURPLE
public static final KnownColor FUCHSIA
public static final KnownColor WHITE
public static final KnownColor LIME
public static final KnownColor GREEN
public static final KnownColor NAVY
public static final KnownColor BLUE
public static final KnownColor AQUA
public static final KnownColor TEAL
public static final KnownColor BLACK
public static final KnownColor SILVER
public static final KnownColor GRAY
public static KnownColor[] values()
for (KnownColor c : KnownColor.values()) System.out.println(c);
public static KnownColor valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String value()
public static KnownColor fromValue(String v)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.