Enum Class CoverageLevel
- All Implemented Interfaces:
Serializable,Comparable<CoverageLevel>,Constable
Provides the colorization for different coverage levels.
- Author:
- Florian Orendi
-
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 ColorProvider.DisplayColorsgetDisplayColorsOfCoverageLevel(double coveragePercentage, ColorProvider colorProvider) Gets thedisplay colorsfor representing the passed coverage amount.doublegetLevel()static CoverageLevelReturns the enum constant of this class with the specified name.static CoverageLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LVL_95
-
LVL_90
-
LVL_80
-
LVL_75
-
LVL_70
-
LVL_60
-
LVL_50
-
LVL_0
-
NA
-
-
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
-
getDisplayColorsOfCoverageLevel
public static ColorProvider.DisplayColors getDisplayColorsOfCoverageLevel(double coveragePercentage, @NonNull ColorProvider colorProvider) Gets thedisplay colorsfor representing the passed coverage amount. If the value is placed between two levels, the fill colors are blended.- Parameters:
coveragePercentage- The coverage percentagecolorProvider- Thecolor providerto be used- Returns:
- the display colors
-
getLevel
public double getLevel() -
getColorizationId
-