Class ColorProviderFactory
java.lang.Object
com.parasoft.findings.jenkins.coverage.api.metrics.color.ColorProviderFactory
Provides factory methods for creating different
color providers
.- Author:
- Florian Orendi
-
Method Summary
Modifier and TypeMethodDescriptionstatic ColorProvider
createColorProvider
(Map<String, String> colors) Creates acolor provider
which uses the set Jenkins colors.static ColorProvider
Creates acolor provider
which uses the internalcolor palette
.
-
Method Details
-
createDefaultColorProvider
Creates acolor provider
which uses the internalcolor palette
.- Returns:
- the created color provider
-
createColorProvider
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
-