Class ColorProvider.DisplayColors
- java.lang.Object
-
- com.parasoft.findings.jenkins.coverage.api.metrics.color.ColorProvider.DisplayColors
-
- Enclosing class:
- ColorProvider
public static class ColorProvider.DisplayColors extends Object
Wraps the fill color and the line color that should be used in order to visualize coverage values.- Author:
- Florian Orendi
-
-
Constructor Summary
Constructors Constructor Description DisplayColors(Color lineColor, Color fillColor)
Creates a wrapper for the colors used for displaying values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Color
getFillColor()
String
getFillColorAsRGBAHex(int alpha)
Gets the fill color with the passed alpha value.String
getFillColorAsRGBHex()
Color
getLineColor()
String
getLineColorAsRGBHex()
int
hashCode()
String
toString()
-
-
-
Method Detail
-
getLineColor
public Color getLineColor()
-
getFillColor
public Color getFillColor()
-
getFillColorAsRGBAHex
public String getFillColorAsRGBAHex(int alpha)
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
public String getLineColorAsRGBHex()
-
getFillColorAsRGBHex
public String getFillColorAsRGBHex()
-
-