Enum Class Enums.ColorPolicy
- All Implemented Interfaces:
Serializable
,Comparable<Enums.ColorPolicy>
,Constable
- Enclosing interface:
Enums
Determines the policy changing the color value for a series of values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionApply a gradient using color 1 and color 2.Use color 1 if the value is higher than then previous, color 2 if lower than previous.Use color 1 if the value is positive (>0), color 2 if the value is negative(<0).Use the same colors as the price bars.Use color 1 only. -
Method Summary
Modifier and TypeMethodDescriptionstatic Enums.ColorPolicy
toString()
static Enums.ColorPolicy
Returns the enum constant of this class with the specified name.static Enums.ColorPolicy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SOLID
Use color 1 only. -
HIGHER_LOWER
Use color 1 if the value is higher than then previous, color 2 if lower than previous. -
GRADIENT
Apply a gradient using color 1 and color 2. -
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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getShortCode
-
toString
- Overrides:
toString
in classEnum<Enums.ColorPolicy>
-
fromCode
-