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.104.0 (build e79254c)",
date="2024-11-06T23:25:05.747Z")
@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;
dashboard.addWidgets(GraphWidget.Builder.create()
// ...
.leftAnnotations(List.of(HorizontalAnnotation.builder().value(1800).label(Duration.minutes(30).toHumanString()).color(Color.RED).build(), HorizontalAnnotation.builder().value(3600).label("1 hour").color("#2ca02c").build()))
.verticalAnnotations(List.of(VerticalAnnotation.builder().date("2022-10-19T00:00:00Z").label("Deployment").color(Color.RED).build()))
.build());
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringblue - hex #1f77b4.static final Stringbrown - hex #8c564b.static final Stringgreen - hex #2ca02c.static final Stringgrey - hex #7f7f7f.static final Stringorange - hex #ff7f0e.static final Stringpink - hex #e377c2.static final Stringpurple - hex #9467bd.static final Stringred - hex #d62728. -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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)
-