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