public final class ColorSchemesOptionsBuilder extends Object
ColorSchemes.ID
plugin options by a builder.Modifier and Type | Method and Description |
---|---|
ColorSchemesOptions |
build()
Returns a configured plugin options.
|
static ColorSchemesOptionsBuilder |
create()
Returns new builder instance.
|
ColorSchemesOptionsBuilder |
setBackgroundColorAlpha(double backgroundColorAlpha)
The transparency value for the background color.
|
ColorSchemesOptionsBuilder |
setReverse(boolean reverse)
If set to
true , the order of the colors in the selected scheme is reversed. |
ColorSchemesOptionsBuilder |
setScheme(ColorScheme scheme)
Sets the color scheme.
|
ColorSchemesOptionsBuilder |
setSchemeScope(SchemeScope schemeScope)
Sets the color scheme scope when the scheme is applied to hoving flex datasets, like bars charts.
|
public static ColorSchemesOptionsBuilder create()
public ColorSchemesOptions build()
public ColorSchemesOptionsBuilder setSchemeScope(SchemeScope schemeScope)
schemeScope
- the color scheme scope when the scheme is applied to hoving flex datasets, like bars charts.public ColorSchemesOptionsBuilder setScheme(ColorScheme scheme)
scheme
- the color scheme.public ColorSchemesOptionsBuilder setBackgroundColorAlpha(double backgroundColorAlpha)
backgroundColorAlpha
- the transparency value for the background colorpublic ColorSchemesOptionsBuilder setReverse(boolean reverse)
true
, the order of the colors in the selected scheme is reversed.reverse
- if set to true
, the order of the colors in the selected scheme is reversed