public final class HtmlLegendOptionsBuilder extends AbstractBaseBuilder
HtmlLegend.ID
plugin options by a builder.Modifier and Type | Method and Description |
---|---|
HtmlLegendOptions |
build()
Returns a configured plugin options.
|
static HtmlLegendOptionsBuilder |
create()
Returns new builder instance, using the global options as default.
|
static HtmlLegendOptionsBuilder |
create(IsChart chart)
Returns new builder instance using chart global options as default.
|
HtmlLegendOptionsBuilder |
setDisplay(boolean display)
Sets if the legend is shown.
|
HtmlLegendOptionsBuilder |
setLegendItemCallback(HtmlLegendItemCallback legendTextCallback)
Sets the callback which can be implemented to change the text of legend for a specific item, as HTML.
|
HtmlLegendOptionsBuilder |
setLegendTitleCallback(HtmlLegendTitleCallback legendTitleCallback)
Sets the callback which can be implemented to change the text of legend's title, as HTML.
|
HtmlLegendOptionsBuilder |
setMaximumLegendColumns(int maxColumns)
Sets the maximum amount of columns of legend.
|
isBuilt, setBuilt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkAndGetIfValid, checkIfValid, isValid
public static HtmlLegendOptionsBuilder create()
public static HtmlLegendOptionsBuilder create(IsChart chart)
chart
- chart instance related to the plugin optionspublic HtmlLegendOptions build()
public HtmlLegendOptionsBuilder setDisplay(boolean display)
display
- if the legend is shown.public HtmlLegendOptionsBuilder setLegendItemCallback(HtmlLegendItemCallback legendTextCallback)
legendTextCallback
- the callback which can be implemented to change the text of legend for a specific item, as HTMLpublic HtmlLegendOptionsBuilder setLegendTitleCallback(HtmlLegendTitleCallback legendTitleCallback)
legendTitleCallback
- the callback which can be implemented to change the text of legend's title, as HTMLpublic HtmlLegendOptionsBuilder setMaximumLegendColumns(int maxColumns)
maxColumns
- the maximum amount of columns of legend