Class ColorProvider.DisplayColors
java.lang.Object
io.jenkins.plugins.coverage.metrics.color.ColorProvider.DisplayColors
- Enclosing class:
- ColorProvider
Wraps the fill color and the line color that should be used in order to visualize coverage values.
-
Constructor Summary
ConstructorsConstructorDescriptionDisplayColors(Color lineColor, Color fillColor) Creates a wrapper for the colors used for displaying values. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetFillColorAsRGBAHex(int alpha) Gets the fill color with the passed alpha value.inthashCode()toString()
-
Constructor Details
-
DisplayColors
Creates a wrapper for the colors used for displaying values.- Parameters:
lineColor- The used line colorfillColor- The used fill color
-
-
Method Details
-
getLineColor
-
getFillColor
-
getFillColorAsRGBAHex
Gets the fill color with the passed alpha value. Using a low alpha value might require using another line color than the providedlineColor.- Parameters:
alpha- The color alpha- Returns:
- the hex code which contains the alpha value
-
getLineColorAsRGBHex
-
getFillColorAsRGBHex
-
equals
-
hashCode
public int hashCode() -
toString
-