public enum ColorOrder extends java.lang.Enum<ColorOrder>
Modifier and Type | Method and Description |
---|---|
static ColorOrder |
fromString(java.lang.String order) |
java.awt.Color |
getColor(java.awt.Color color) |
java.awt.Color |
getReverse(java.awt.Color color) |
static ColorOrder |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ColorOrder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ColorOrder RGB
public static final ColorOrder RBG
public static final ColorOrder GRB
public static final ColorOrder GBR
public static final ColorOrder BRG
public static final ColorOrder BGR
public static ColorOrder[] values()
for (ColorOrder c : ColorOrder.values()) System.out.println(c);
public static ColorOrder valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.awt.Color getColor(java.awt.Color color)
public java.awt.Color getReverse(java.awt.Color color)
public static ColorOrder fromString(java.lang.String order)