Package org.pepstock.charba.client.items
Interface ChartElementFactory
-
- All Superinterfaces:
NativeObjectContainerFactory<ChartElement>
- All Known Subinterfaces:
ChartContextElementFactory
public interface ChartElementFactory extends NativeObjectContainerFactory<ChartElement>
Maps the methods to implement an factory to mapChartElement, used by each controlloer to draw the chart.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChartContextcreateContext(NativeObject nativeObject)Returns the context instance from an element.ChartElementOptionscreateOptions(ChartElement parent, NativeObject nativeObject)Creates aChartElementOptionsinstance by a native object.StringgetType()Returns the type of theChartElement.-
Methods inherited from interface org.pepstock.charba.client.commons.NativeObjectContainerFactory
create, create
-
-
-
-
Method Detail
-
getType
String getType()
Returns the type of theChartElement.- Returns:
- the type of the
ChartElement
-
createOptions
ChartElementOptions createOptions(ChartElement parent, NativeObject nativeObject)
Creates aChartElementOptionsinstance by a native object.- Parameters:
parent- chart element where the options belong tonativeObject- native object- Returns:
- a
ChartElementOptionsinstance by a native object
-
createContext
ChartContext createContext(NativeObject nativeObject)
Returns the context instance from an element.- Parameters:
nativeObject- native object- Returns:
- the context instance from an element
-
-