public static final class HorizontalAnnotation.Builder
extends java.lang.Object
HorizontalAnnotation
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
HorizontalAnnotation |
build()
Builds the configured instance.
|
HorizontalAnnotation.Builder |
color(java.lang.String color)
Sets the value of
HorizontalAnnotation.getColor() |
HorizontalAnnotation.Builder |
fill(Shading fill)
Sets the value of
HorizontalAnnotation.getFill() |
HorizontalAnnotation.Builder |
label(java.lang.String label)
Sets the value of
HorizontalAnnotation.getLabel() |
HorizontalAnnotation.Builder |
value(java.lang.Number value)
Sets the value of
HorizontalAnnotation.getValue() |
HorizontalAnnotation.Builder |
visible(java.lang.Boolean visible)
Sets the value of
HorizontalAnnotation.getVisible() |
public HorizontalAnnotation.Builder value(java.lang.Number value)
HorizontalAnnotation.getValue()
value
- The value of the annotation. This parameter is required.this
public HorizontalAnnotation.Builder color(java.lang.String color)
HorizontalAnnotation.getColor()
color
- The hex color code, prefixed with '#' (e.g. '#00ff00'), to be used for the annotation. The `Color` class has a set of standard colors that can be used here.this
public HorizontalAnnotation.Builder fill(Shading fill)
HorizontalAnnotation.getFill()
fill
- Add shading above or below the annotation.this
public HorizontalAnnotation.Builder label(java.lang.String label)
HorizontalAnnotation.getLabel()
label
- Label for the annotation.this
public HorizontalAnnotation.Builder visible(java.lang.Boolean visible)
HorizontalAnnotation.getVisible()
visible
- Whether the annotation is visible.this
public HorizontalAnnotation build()
HorizontalAnnotation
java.lang.NullPointerException
- if any required attribute was not provided