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.IDplugin options by a builder.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ChartPointerOptionsbuild()Returns a configured plugin options.static ChartPointerOptionsBuildercreate()Returns new builder instance.static ChartPointerOptionsBuildercreate(IsChart chart)Returns new builder instance using the chart global options.ChartPointerOptionsBuildersetCursorPointer(CursorType cursor)Sets the cursor type when the cursor is over the dataset item.ChartPointerOptionsBuildersetElements(PointerElement... elements)Sets the chart elements in scope toChartPointer.IDplugin.-
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.IDplugin.- Parameters:
elements- the chart elements in scope toChartPointer.IDplugin- 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
-
-