Class Color
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
Modifier and TypeFieldDescriptionstatic 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
-
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
blue - hex #1f77b4. -
BROWN
brown - hex #8c564b. -
GREEN
green - hex #2ca02c. -
GREY
grey - hex #7f7f7f. -
ORANGE
orange - hex #ff7f0e. -
PINK
pink - hex #e377c2. -
PURPLE
purple - hex #9467bd. -
RED
red - hex #d62728.
-
-
Constructor Details
-
Color
protected Color(software.amazon.jsii.JsiiObjectRef objRef) -
Color
protected Color(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-