public static enum ColorHelper.NamedColor extends Enum<ColorHelper.NamedColor>
getPredefinedColor()
.Enum Constant and Description |
---|
BLACK
Default color black.
|
BLUE
Default color blue.
|
CYAN
Default color cyan.
|
DARK_GRAY
Default color dark gray.
|
GRAY
Default color gray.
|
GREEN
Default color green.
|
LIGHT_GRAY
Default color light gray.
|
MAGENTA
Default color magenta.
|
ORANGE
Default color orange.
|
PINK
Default color pink.
|
RED
Default color red.
|
WHITE
Default color white.
|
YELLOW
Default color yellow.
|
Modifier and Type | Method and Description |
---|---|
Color |
getColor()
Returns the associated
Color object. |
static ColorHelper.NamedColor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ColorHelper.NamedColor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColorHelper.NamedColor BLACK
public static final ColorHelper.NamedColor BLUE
public static final ColorHelper.NamedColor CYAN
public static final ColorHelper.NamedColor DARK_GRAY
public static final ColorHelper.NamedColor GRAY
public static final ColorHelper.NamedColor GREEN
public static final ColorHelper.NamedColor LIGHT_GRAY
public static final ColorHelper.NamedColor MAGENTA
public static final ColorHelper.NamedColor ORANGE
public static final ColorHelper.NamedColor PINK
public static final ColorHelper.NamedColor RED
public static final ColorHelper.NamedColor WHITE
public static final ColorHelper.NamedColor YELLOW
public static ColorHelper.NamedColor[] values()
for (ColorHelper.NamedColor c : ColorHelper.NamedColor.values()) System.out.println(c);
public static ColorHelper.NamedColor 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 Color getColor()
Color
object.Color
represented by this objectCopyright © 2016 The JGUIraffe Team. All rights reserved.