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:
- 
- "JS method resolveJenkinsColors in file echarts-scope.js"
- Jenkins colors
 
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptionstatic JenkinsPalettechartColor(int n) Returns a chart color that can be used to render elementnin 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 JenkinsPaletteReturns 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- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
chartColorReturns a chart color that can be used to render elementnin a chart. Ifnis 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
 
- 
lightReturns the CSS variable name for this color (light variation).- Returns:
- the CSS variable name
 
- 
normalReturns the CSS variable name for this color.- Returns:
- the CSS variable name
 
- 
darkReturns the CSS variable name for this color (dark variation).- Returns:
- the CSS variable name
 
 
-