Class SeverityPalette
java.lang.Object
io.jenkins.plugins.analysis.core.charts.SeverityPalette
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public final class SeverityPalette
extends Object
Provides colors for
Severity. These colors are used for all charts of the Warnings plugin (and the severity
bar of the overview page in RunTab/styles.css), so that a severity has the same color everywhere.- Author:
- Ullrich Hafner
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.jenkins.plugins.echarts.JenkinsPalettemapToColor(edu.hm.hafner.analysis.Severity severity) Returns the color of UI elements for the specified severity.
-
Method Details
-
mapToColor
public static io.jenkins.plugins.echarts.JenkinsPalette mapToColor(edu.hm.hafner.analysis.Severity severity) Returns the color of UI elements for the specified severity.- Parameters:
severity- the severity to get the color for- Returns:
- color of the specified severity
-