public final class DatasetsItemsSelectorOptionsBuilder extends Object
Modifier and Type | Method and Description |
---|---|
DatasetsItemsSelectorOptions |
build()
Returns a configured plugin options.
|
static DatasetsItemsSelectorOptionsBuilder |
create()
Returns new builder instance.
|
DatasetsItemsSelectorOptionsBuilder |
setAlign(Align align)
Sets the clear selection 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 into chart, otherwise false . |
DatasetsItemsSelectorOptionsBuilder |
setFireEventOnClearSelection(boolean fireEvent)
Sets
true if it will fire event after clear of selection, otherwise false . |
DatasetsItemsSelectorOptionsBuilder |
setFontColor(IsColor color)
Set the clear selection label font color.
|
DatasetsItemsSelectorOptionsBuilder |
setFontColor(String color)
Sets the clear selection label font color.
|
DatasetsItemsSelectorOptionsBuilder |
setFontFamily(String fontFamily)
Sets the font family, follows CSS font-family options.getClearSelection().
|
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(Image image)
Sets the clear selection image.
|
DatasetsItemsSelectorOptionsBuilder |
setImage(ImageElement image)
Sets the clear selection image.
|
DatasetsItemsSelectorOptionsBuilder |
setImage(ImageResource image)
Sets the clear selection image.
|
DatasetsItemsSelectorOptionsBuilder |
setLabel(String label)
Sets the clear selection label.
|
DatasetsItemsSelectorOptionsBuilder |
setMargin(int margin)
Sets the margin from canvas border.
|
DatasetsItemsSelectorOptionsBuilder |
setPadding(int padding)
Sets the padding of clear selection element.
|
DatasetsItemsSelectorOptionsBuilder |
setPosition(Position position)
Sets the clear selection label position.
|
DatasetsItemsSelectorOptionsBuilder |
setRender(Render render)
Sets the clear selection render.
|
DatasetsItemsSelectorOptionsBuilder |
setSpacing(int spacing)
Sets the spacing between label and image for clear selection element.
|
DatasetsItemsSelectorOptionsBuilder |
setUseSelectionStyle(boolean useSelectionStyle)
Sets
true if clear of selection label will e applied into chart, otherwise false . |
DatasetsItemsSelectorOptionsBuilder |
setXAxisID(String xAxisID)
Sets the ID of the x axis to plot this dataset on.
|
public static DatasetsItemsSelectorOptionsBuilder create()
public DatasetsItemsSelectorOptions build()
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 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 setFireEventOnClearSelection(boolean fireEvent)
true
if it will fire event after clear of selection, otherwise false
.fireEvent
- true
if it will fire event after clear of selection, otherwise false
public DatasetsItemsSelectorOptionsBuilder setDisplay(boolean display)
true
if clear of selection label will e applied into chart, otherwise false
.display
- true
if clear of selection label will e applied into chart, otherwise false
public DatasetsItemsSelectorOptionsBuilder setLabel(String label)
label
- the clear selection 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 options.getClearSelection().public DatasetsItemsSelectorOptionsBuilder setFontColor(String color)
color
- the clear selection label font color.public DatasetsItemsSelectorOptionsBuilder setFontColor(IsColor color)
color
- the clear selection label font color.public DatasetsItemsSelectorOptionsBuilder setAlign(Align align)
align
- the clear selection alignpublic DatasetsItemsSelectorOptionsBuilder setRender(Render render)
render
- the clear selection renderpublic DatasetsItemsSelectorOptionsBuilder setPosition(Position position)
position
- the clear selection label positionpublic DatasetsItemsSelectorOptionsBuilder setImage(ImageResource image)
image
- the clear selection imagepublic DatasetsItemsSelectorOptionsBuilder setImage(Image image)
image
- the clear selection imagepublic DatasetsItemsSelectorOptionsBuilder setImage(ImageElement image)
image
- the clear selection imagepublic DatasetsItemsSelectorOptionsBuilder setMargin(int margin)
margin
- margin from canvas borderpublic DatasetsItemsSelectorOptionsBuilder setPadding(int padding)
padding
- padding of clear selection elementpublic DatasetsItemsSelectorOptionsBuilder setSpacing(int spacing)
spacing
- spacing between label and image for clear selection elementpublic DatasetsItemsSelectorOptionsBuilder setUseSelectionStyle(boolean useSelectionStyle)
true
if clear of selection label will e applied into chart, otherwise false
.useSelectionStyle
- true
if clear of selection label will e applied into chart, otherwise
false