java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.cloudwatch.Color
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:36.849Z") @Stability(Stable) public class Color extends software.amazon.jsii.JsiiObject
A set of standard colours that can be used in annotations in a GraphWidget.

Example:

 Dashboard dashboard;
 Metric executionCountMetric;
 Metric errorCountMetric;
 dashboard.addWidgets(GraphWidget.Builder.create()
         .title("Executions vs error rate")
         .left(List.of(executionCountMetric))
         .right(List.of(errorCountMetric.with(MetricOptions.builder()
                 .statistic("average")
                 .label("Error rate")
                 .color(Color.GREEN)
                 .build())))
         .build());
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    blue - hex #1f77b4.
    static final String
    brown - hex #8c564b.
    static final String
    green - hex #2ca02c.
    static final String
    grey - hex #7f7f7f.
    static final String
    orange - hex #ff7f0e.
    static final String
    pink - hex #e377c2.
    static final String
    purple - hex #9467bd.
    static final String
    red - hex #d62728.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Color(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    Color(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Field Details

    • BLUE

      @Stability(Stable) public static final String BLUE
      blue - hex #1f77b4.
    • BROWN

      @Stability(Stable) public static final String BROWN
      brown - hex #8c564b.
    • GREEN

      @Stability(Stable) public static final String GREEN
      green - hex #2ca02c.
    • GREY

      @Stability(Stable) public static final String GREY
      grey - hex #7f7f7f.
    • ORANGE

      @Stability(Stable) public static final String ORANGE
      orange - hex #ff7f0e.
    • PINK

      @Stability(Stable) public static final String PINK
      pink - hex #e377c2.
    • PURPLE

      @Stability(Stable) public static final String PURPLE
      purple - hex #9467bd.
    • RED

      @Stability(Stable) public static final String RED
      red - hex #d62728.
  • Constructor Details

    • Color

      protected Color(software.amazon.jsii.JsiiObjectRef objRef)
    • Color

      protected Color(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)