Class ControllerType
- java.lang.Object
-
- org.pepstock.charba.client.controllers.ControllerType
-
-
Constructor Summary
Constructors Constructor Description ControllerType(String type, Type chartType, ControllerProvider provider)
Creates new chart type based on existing chart type, as extension.
Scale type is the existing chart one.ControllerType(String type, Type chartType, ControllerProvider provider, boolean cloneDefaults)
Creates new chart type based on existing chart type, as extension.
Scale type is the existing chart one.ControllerType(String type, Type chartType, ControllerProvider provider, ControllerRegistrationHandler handler)
Creates new chart type based on existing chart type, as extension.
Scale type is the existing chart one.ControllerType(String type, Type chartType, ControllerProvider provider, ControllerRegistrationHandler handler, boolean cloneDefaults)
Creates new chart type based on existing chart type, as extension.
Scale type is the existing chart one.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Type
getChartType()
Returns the extended chart type of controller.int
hashCode()
boolean
isCloneDefaults()
Returnstrue
if it clones the default options of base chart type.boolean
register()
Registers the controller if it is not already registered.ScaleType
scaleType()
Returns the scale type of the chart.String
value()
Returns the name value of property
-
-
-
Constructor Detail
-
ControllerType
public ControllerType(String type, Type chartType, ControllerProvider provider)
Creates new chart type based on existing chart type, as extension.
Scale type is the existing chart one.- Parameters:
type
- new chart type as string.chartType
- existing chart type, as extension.provider
- controller provider instance to use for controller registering
-
ControllerType
public ControllerType(String type, Type chartType, ControllerProvider provider, ControllerRegistrationHandler handler)
Creates new chart type based on existing chart type, as extension.
Scale type is the existing chart one.- Parameters:
type
- new chart type as string.chartType
- existing chart type, as extension.provider
- controller provider instance to use for controller registeringhandler
- controller registration handler instance
-
ControllerType
public ControllerType(String type, Type chartType, ControllerProvider provider, boolean cloneDefaults)
Creates new chart type based on existing chart type, as extension.
Scale type is the existing chart one.- Parameters:
type
- new chart type as string.chartType
- existing chart type, as extension.provider
- controller provider instance to use for controller registeringcloneDefaults
- iftrue
, clones the default options of base chart type.
-
ControllerType
public ControllerType(String type, Type chartType, ControllerProvider provider, ControllerRegistrationHandler handler, boolean cloneDefaults)
Creates new chart type based on existing chart type, as extension.
Scale type is the existing chart one.- Parameters:
type
- new chart type as string.chartType
- existing chart type, as extension.provider
- controller provider instance to use for controller registeringhandler
- controller registration handler instancecloneDefaults
- iftrue
, clones the default options of base chart type.
-
-
Method Detail
-
value
public String value()
Description copied from interface:Key
Returns the name value of property
-
scaleType
public ScaleType scaleType()
Description copied from interface:Type
Returns the scale type of the chart.
-
getChartType
public Type getChartType()
Returns the extended chart type of controller.- Returns:
- the extended chart type of controller
-
isCloneDefaults
public boolean isCloneDefaults()
Returnstrue
if it clones the default options of base chart type.- Returns:
true
if it clones the default options of base chart type
-
register
public boolean register()
Registers the controller if it is not already registered.- Returns:
true
if registered, otherwisefalse
if the controller is already registered with the controller type of controller instance.
-
-