Enum CoverageColorPalette
- java.lang.Object
-
- java.lang.Enum<CoverageColorPalette>
-
- com.parasoft.findings.jenkins.coverage.api.metrics.color.CoverageColorPalette
-
- All Implemented Interfaces:
Serializable
,Comparable<CoverageColorPalette>
public enum CoverageColorPalette extends Enum<CoverageColorPalette>
Provides a color palette which can be used as a plugin internal fallback if no other color schemes have been defined. The defined colors correspond to the Jenkins Design Library.- Author:
- Florian Orendi
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLACK
GREEN
LIGHT_GREEN
LIGHT_ORANGE
LIGHT_RED
LIGHT_YELLOW
ORANGE
RED
WHITE
YELLOW
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorId
getColorId()
Color
getFillColor()
Color
getLineColor()
static CoverageColorPalette
valueOf(String name)
Returns the enum constant of this type with the specified name.static CoverageColorPalette[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WHITE
public static final CoverageColorPalette WHITE
-
BLACK
public static final CoverageColorPalette BLACK
-
RED
public static final CoverageColorPalette RED
-
LIGHT_RED
public static final CoverageColorPalette LIGHT_RED
-
ORANGE
public static final CoverageColorPalette ORANGE
-
LIGHT_ORANGE
public static final CoverageColorPalette LIGHT_ORANGE
-
YELLOW
public static final CoverageColorPalette YELLOW
-
LIGHT_YELLOW
public static final CoverageColorPalette LIGHT_YELLOW
-
LIGHT_GREEN
public static final CoverageColorPalette LIGHT_GREEN
-
GREEN
public static final CoverageColorPalette GREEN
-
-
Method Detail
-
values
public static CoverageColorPalette[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CoverageColorPalette c : CoverageColorPalette.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CoverageColorPalette valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getColorId
public ColorId getColorId()
-
getFillColor
public Color getFillColor()
-
getLineColor
public Color getLineColor()
-
-