Klasse ColorProvider.DisplayColors

Umschließende Klasse:

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.
  • Konstruktordetails

    • DisplayColors

      public DisplayColors(Color lineColor, Color fillColor)
      Creates a wrapper for the colors used for displaying values.
      lineColor - The used line color
      fillColor - The used fill color
  • Methodendetails

    • 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 provided lineColor.
      alpha - The color alpha
      Gibt zurück:
      the hex code which contains the alpha value
    • getLineColorAsRGBHex

      public String getLineColorAsRGBHex()
    • getFillColorAsRGBHex

      public String getFillColorAsRGBHex()
    • equals

      public boolean equals(Object o)
      Setzt außer Kraft:
      equals in Klasse Object
    • hashCode

      public int hashCode()
      Setzt außer Kraft:
      hashCode in Klasse Object
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object