Class ChartPointerOptionsBuilder
- java.lang.Object
-
- org.pepstock.charba.client.commons.AbstractBaseBuilder
-
- org.pepstock.charba.client.impl.plugins.ChartPointerOptionsBuilder
-
- All Implemented Interfaces:
IsBuilder
public final class ChartPointerOptionsBuilder extends AbstractBaseBuilder
Comfortable object to createChartPointer.ID
plugin options by a builder.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChartPointerOptions
build()
Returns a configured plugin options.static ChartPointerOptionsBuilder
create()
Returns new builder instance.static ChartPointerOptionsBuilder
create(IsChart chart)
Returns new builder instance using the chart global options.ChartPointerOptionsBuilder
setCursorPointer(CursorType cursor)
Sets the cursor type when the cursor is over the dataset item.ChartPointerOptionsBuilder
setElements(PointerElement... elements)
Sets the chart elements in scope toChartPointer.ID
plugin.-
Methods inherited from class org.pepstock.charba.client.commons.AbstractBaseBuilder
isBuilt, setBuilt
-
-
-
-
Method Detail
-
create
public static ChartPointerOptionsBuilder create()
Returns new builder instance.- Returns:
- new builder instance
-
create
public static ChartPointerOptionsBuilder create(IsChart chart)
Returns new builder instance using the chart global options.- Parameters:
chart
- chart instance related to the plugin options- Returns:
- new builder instance
-
build
public ChartPointerOptions build()
Returns a configured plugin options.- Returns:
- a configured plugin options.
-
setElements
public ChartPointerOptionsBuilder setElements(PointerElement... elements)
Sets the chart elements in scope toChartPointer.ID
plugin.- Parameters:
elements
- the chart elements in scope toChartPointer.ID
plugin- Returns:
- new builder instance
-
setCursorPointer
public ChartPointerOptionsBuilder setCursorPointer(CursorType cursor)
Sets the cursor type when the cursor is over the dataset item.- Parameters:
cursor
- cursor type when the cursor is over the dataset item- Returns:
- new builder instance
-
-