public final class DatasetsItemsSelectorOptionsBuilder extends AbstractBaseBuilder
DatasetsItemsSelector.ID
plugin options by a builder.Modifier and Type | Method and Description |
---|---|
DatasetsItemsSelectorOptions |
build()
Returns a configured plugin options.
|
static DatasetsItemsSelectorOptionsBuilder |
create()
Returns new builder instance.
|
static DatasetsItemsSelectorOptionsBuilder |
create(IsChart chart)
Returns new builder instance using the chart global options.
|
DatasetsItemsSelectorOptionsBuilder |
setAlign(Align align)
Sets the selection cleaner align.
|
DatasetsItemsSelectorOptionsBuilder |
setBorderColor(IsColor color)
Sets the color.
|
DatasetsItemsSelectorOptionsBuilder |
setBorderColor(String color)
Sets the color.
|
DatasetsItemsSelectorOptionsBuilder |
setBorderDash(int... borderDash)
Sets the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.
|
DatasetsItemsSelectorOptionsBuilder |
setBorderWidth(int borderWidth)
Sets the border width of the selection.
|
DatasetsItemsSelectorOptionsBuilder |
setColor(IsColor color)
Sets the color.
|
DatasetsItemsSelectorOptionsBuilder |
setColor(String color)
Sets the color.
|
DatasetsItemsSelectorOptionsBuilder |
setDisplay(boolean display)
Sets
true if clear of selection label will e applied in the chart, otherwise false . |
DatasetsItemsSelectorOptionsBuilder |
setEnabled(boolean enabled)
Sets
true if plugin is enabled. |
DatasetsItemsSelectorOptionsBuilder |
setFontColor(IsColor color)
Set the selection cleaner label font color.
|
DatasetsItemsSelectorOptionsBuilder |
setFontColor(String color)
Sets the selection cleaner label font color.
|
DatasetsItemsSelectorOptionsBuilder |
setFontFamily(String fontFamily)
Sets the font family, follows CSS font-family in selection cleaner.
|
DatasetsItemsSelectorOptionsBuilder |
setFontSize(int fontSize)
Sets the font size.
|
DatasetsItemsSelectorOptionsBuilder |
setFontStyle(FontStyle fontStyle)
Sets the font style, follows CSS font-style options (i.e.
|
DatasetsItemsSelectorOptionsBuilder |
setImage(Img image)
Sets the selection cleaner image.
|
DatasetsItemsSelectorOptionsBuilder |
setLabel(String label)
Sets the selection cleaner label.
|
DatasetsItemsSelectorOptionsBuilder |
setMargin(int margin)
Sets the margin from canvas border.
|
DatasetsItemsSelectorOptionsBuilder |
setModifierKey(ModifierKey modifierKey)
Sets the modifier key to activate selection.
|
DatasetsItemsSelectorOptionsBuilder |
setPadding(int padding)
Sets the padding of selection cleaner element.
|
DatasetsItemsSelectorOptionsBuilder |
setPosition(Position position)
Sets the selection cleaner label position.
|
DatasetsItemsSelectorOptionsBuilder |
setRender(Render render)
Sets the selection cleaner render.
|
DatasetsItemsSelectorOptionsBuilder |
setSpacing(int spacing)
Sets the spacing between label and image for selection cleaner element.
|
DatasetsItemsSelectorOptionsBuilder |
setUseSelectionStyle(boolean useSelectionStyle)
Sets
true if clear of selection label will e applied in the chart, otherwise false . |
DatasetsItemsSelectorOptionsBuilder |
setXAxisID(ScaleId xAxisID)
Sets the ID of the x axis to plot this dataset on.
|
DatasetsItemsSelectorOptionsBuilder |
setXAxisID(String xAxisID)
Sets the ID of the x axis to plot this dataset on.
|
isBuilt, setBuilt
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkAndGetIfValid, checkIfValid, isValid
public static DatasetsItemsSelectorOptionsBuilder create()
public static DatasetsItemsSelectorOptionsBuilder create(IsChart chart)
chart
- chart instance related to the plugin optionspublic DatasetsItemsSelectorOptions build()
public DatasetsItemsSelectorOptionsBuilder setEnabled(boolean enabled)
true
if plugin is enabled.enabled
- true
if plugin is enabled.public DatasetsItemsSelectorOptionsBuilder setXAxisID(String xAxisID)
xAxisID
- the ID of the x axis to plot this dataset on. If not specified, this defaults to the ID of the first found x axis.public DatasetsItemsSelectorOptionsBuilder setXAxisID(ScaleId xAxisID)
xAxisID
- the ID of the x axis to plot this dataset on. If not specified, this defaults to the ID of the first found x axis.public DatasetsItemsSelectorOptionsBuilder setColor(String color)
color
- the color.public DatasetsItemsSelectorOptionsBuilder setColor(IsColor color)
color
- the color.public DatasetsItemsSelectorOptionsBuilder setBorderDash(int... borderDash)
borderDash
- the line dash pattern used when stroking linespublic DatasetsItemsSelectorOptionsBuilder setBorderWidth(int borderWidth)
borderWidth
- the border width of the selection.public DatasetsItemsSelectorOptionsBuilder setBorderColor(String color)
color
- the color.public DatasetsItemsSelectorOptionsBuilder setBorderColor(IsColor color)
color
- the color.public DatasetsItemsSelectorOptionsBuilder setModifierKey(ModifierKey modifierKey)
modifierKey
- the modifier key to activate selectionpublic DatasetsItemsSelectorOptionsBuilder setDisplay(boolean display)
true
if clear of selection label will e applied in the chart, otherwise false
.display
- true
if clear of selection label will e applied in the chart, otherwise false
public DatasetsItemsSelectorOptionsBuilder setLabel(String label)
label
- the selection cleaner labelpublic DatasetsItemsSelectorOptionsBuilder setFontSize(int fontSize)
fontSize
- the font size.public DatasetsItemsSelectorOptionsBuilder setFontStyle(FontStyle fontStyle)
fontStyle
- Font style, follows CSS font-style options (i.e. normal, italic, oblique, initial, inherit).public DatasetsItemsSelectorOptionsBuilder setFontFamily(String fontFamily)
fontFamily
- Font family, follows CSS font-family in selection cleaner.public DatasetsItemsSelectorOptionsBuilder setFontColor(String color)
color
- the selection cleaner label font color.public DatasetsItemsSelectorOptionsBuilder setFontColor(IsColor color)
color
- the selection cleaner label font color.public DatasetsItemsSelectorOptionsBuilder setAlign(Align align)
align
- the selection cleaner alignpublic DatasetsItemsSelectorOptionsBuilder setRender(Render render)
render
- the selection cleaner renderpublic DatasetsItemsSelectorOptionsBuilder setPosition(Position position)
position
- the selection cleaner label positionpublic DatasetsItemsSelectorOptionsBuilder setImage(Img image)
image
- the selection cleaner imagepublic DatasetsItemsSelectorOptionsBuilder setMargin(int margin)
margin
- margin from canvas borderpublic DatasetsItemsSelectorOptionsBuilder setPadding(int padding)
padding
- padding of selection cleaner elementpublic DatasetsItemsSelectorOptionsBuilder setSpacing(int spacing)
spacing
- spacing between label and image for selection cleaner elementpublic DatasetsItemsSelectorOptionsBuilder setUseSelectionStyle(boolean useSelectionStyle)
true
if clear of selection label will e applied in the chart, otherwise false
.useSelectionStyle
- true
if clear of selection label will e applied in the chart, otherwise false