public static enum Enums.ColorPolicy extends java.lang.Enum<Enums.ColorPolicy>
Enum Constant and Description |
---|
GRADIENT
Apply a gradient using color 1 and color 2.
|
HIGHER_LOWER
Use color 1 if the value is higher than then previous, color 2 if lower than previous.
|
POSITIVE_NEGATIVE
Use color 1 if the value is positive (>0), color 2 if the value is negative(<0).
|
PRICE_BAR
Use the same colors as the price bars.
|
SOLID
Use color 1 only.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
static Enums.ColorPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Enums.ColorPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Enums.ColorPolicy SOLID
public static final Enums.ColorPolicy HIGHER_LOWER
public static final Enums.ColorPolicy GRADIENT
public static final Enums.ColorPolicy POSITIVE_NEGATIVE
public static final Enums.ColorPolicy PRICE_BAR
public static Enums.ColorPolicy[] values()
for (Enums.ColorPolicy c : Enums.ColorPolicy.values()) System.out.println(c);
public static Enums.ColorPolicy 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.lang.String toString()
toString
in class java.lang.Enum<Enums.ColorPolicy>