@Stability(value=Experimental) public static final class HorizontalAnnotation.Builder extends Object
HorizontalAnnotation| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
HorizontalAnnotation |
build()
Builds the configured instance.
|
HorizontalAnnotation.Builder |
withColor(String value)
Sets the value of Color
|
HorizontalAnnotation.Builder |
withFill(Shading value)
Sets the value of Fill
|
HorizontalAnnotation.Builder |
withLabel(String value)
Sets the value of Label
|
HorizontalAnnotation.Builder |
withValue(Number value)
Sets the value of Value
|
HorizontalAnnotation.Builder |
withVisible(Boolean value)
Sets the value of Visible
|
@Stability(value=Experimental) public HorizontalAnnotation.Builder withValue(Number value)
value - The value of the annotation.this@Stability(value=Experimental) public HorizontalAnnotation.Builder withColor(@Nullable String value)
value - Hex color code to be used for the annotation.this@Stability(value=Experimental) public HorizontalAnnotation.Builder withFill(@Nullable Shading value)
value - Add shading above or below the annotation.this@Stability(value=Experimental) public HorizontalAnnotation.Builder withLabel(@Nullable String value)
value - Label for the annotation.this@Stability(value=Experimental) public HorizontalAnnotation.Builder withVisible(@Nullable Boolean value)
value - Whether the annotation is visible.this@Stability(value=Experimental) public HorizontalAnnotation build()
HorizontalAnnotationNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.