Package io.jenkins.plugins.echarts
Enum Class JenkinsPalette
- All Implemented Interfaces:
Serializable
,Comparable<JenkinsPalette>
,Constable
Jenkins color palette. Each color is represented as a CSS variable that will be rendered according to the selected
theme.
- Author:
- Ullrich Hafner
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic JenkinsPalette
chartColor
(int n) Returns a chart color that can be used to render elementn
in a chart.dark()
Returns the CSS variable name for this color (dark variation).light()
Returns the CSS variable name for this color (light variation).normal()
Returns the CSS variable name for this color.static JenkinsPalette
Returns the enum constant of this class with the specified name.static JenkinsPalette[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLACK
-
BLUE
-
BROWN
-
CYAN
-
GREY
-
GREEN
-
INDIGO
-
ORANGE
-
PINK
-
PURPLE
-
RED
-
WHITE
-
YELLOW
-
-
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
-
chartColor
Returns a chart color that can be used to render elementn
in a chart. Ifn
is greater than the number of available colors then the color will be selected from the beginning of the list, and so on.- Parameters:
n
- the n-th element to render- Returns:
- a color to be used for rendering the n-th element
-
light
Returns the CSS variable name for this color (light variation).- Returns:
- the CSS variable name
-
normal
Returns the CSS variable name for this color.- Returns:
- the CSS variable name
-
dark
Returns the CSS variable name for this color (dark variation).- Returns:
- the CSS variable name
-