Enum Class ColorTemplate
- All Implemented Interfaces:
Serializable
,Comparable<ColorTemplate>
,Constable
Color templates to be used for a
GaugeChart
.- Since:
- 4.0
- Author:
- JBStrap
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe lower slice of the gauge chart is the theme’s dark color, the upper slice is the theme’s light color.The lower slice of the gauge chart is green, the upper slice is red.The lower slice of the gauge chart is the theme’s light color, the upper slice is the theme’s dark color.The lower slice of the gauge chart is red, the upper slice is green. -
Method Summary
Modifier and TypeMethodDescriptionstatic ColorTemplate
Determines the color scheme by the specified name.toString()
static ColorTemplate
Returns the enum constant of this class with the specified name.static ColorTemplate[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RED_TO_GREEN
The lower slice of the gauge chart is red, the upper slice is green. The colors of the slices in between are automatically determined based on their positions so that a color gradient is created between red and green. -
GREEN_TO_RED
The lower slice of the gauge chart is green, the upper slice is red. The colors of the slices in between are automatically determined based on their positions so that a color gradient is created between green and red. -
LIGHT_TO_DARK
The lower slice of the gauge chart is the theme’s light color, the upper slice is the theme’s dark color. The colors of the slices in between are automatically determined based on their positions so that a color gradient is created between the theme’s light and dark colors. -
DARK_TO_LIGHT
The lower slice of the gauge chart is the theme’s dark color, the upper slice is the theme’s light color. The colors of the slices in between are automatically determined based on their positions so that a color gradient is created between the theme’s dark and light colors.
-
-
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
-
toString
- Overrides:
toString
in classEnum<ColorTemplate>
-
fromName
Determines the color scheme by the specified name.- Parameters:
name
- Color scheme name- Returns:
- Color template name or
null
, if there is no color template by the specified name
-