Class ColorProviderFactory
- java.lang.Object
-
- com.parasoft.findings.jenkins.coverage.api.metrics.color.ColorProviderFactory
-
public class ColorProviderFactory extends Object
Provides factory methods for creating differentcolor providers
.- Author:
- Florian Orendi
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ColorProvider
createColorProvider(Map<String,String> colors)
Creates acolor provider
which uses the set Jenkins colors.static ColorProvider
createDefaultColorProvider()
Creates acolor provider
which uses the internalcolor palette
.
-
-
-
Method Detail
-
createDefaultColorProvider
public static ColorProvider createDefaultColorProvider()
Creates acolor provider
which uses the internalcolor palette
.- Returns:
- the created color provider
-
createColorProvider
public static ColorProvider createColorProvider(Map<String,String> colors)
Creates acolor provider
which uses the set Jenkins colors. Required color keys are: '--green', '--light-green', '--yellow', '--light-yellow', '--orange', '--light-orange', '--red', '--light-red' - seeCoverageColorJenkinsId
. If colors are missing, the internal default colors are used - seeCoverageColorPalette
.- Parameters:
colors
- Mapsjenkins color IDs
- Returns:
- the created color provider
-
-