Class ChartConfiguration
- java.lang.Object
-
- com.trivago.cluecumber.engine.constants.ChartConfiguration
-
@Singleton public class ChartConfiguration extends Object
This stores the colors and type of a report chart.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChartConfiguration.TypeThe type of chart.
-
Constructor Summary
Constructors Constructor Description ChartConfiguration(PropertyManager propertyManager)Constructor for dependency injection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetColorRgbaStringByStatus(Status status)Get the RGBA color string by status.StringgetFailedColorRgbaString()Get the RGBA color string for failed.StringgetPassedColorRgbaString()Get the RGBA color string for passed.StringgetSkippedColorRgbaString()Get the RGBA color string for skipped.
-
-
-
Constructor Detail
-
ChartConfiguration
@Inject public ChartConfiguration(PropertyManager propertyManager)
Constructor for dependency injection.- Parameters:
propertyManager- ThePropertyManagerinstance.
-
-
Method Detail
-
getColorRgbaStringByStatus
public String getColorRgbaStringByStatus(Status status)
Get the RGBA color string by status.- Parameters:
status- The status to get the color for.- Returns:
- The RGBA string.
-
getPassedColorRgbaString
public String getPassedColorRgbaString()
Get the RGBA color string for passed.- Returns:
- The RGBA color.
-
getFailedColorRgbaString
public String getFailedColorRgbaString()
Get the RGBA color string for failed.- Returns:
- The RGBA color.
-
getSkippedColorRgbaString
public String getSkippedColorRgbaString()
Get the RGBA color string for skipped.- Returns:
- The RGBA color.
-
-