public final class ExtendedOptions extends ScaledOptions
Options.CommonProperty
Constructor and Description |
---|
ExtendedOptions(IsChart chart,
IsDefaultScaledOptions defaultValues,
ChartEnvelop<NativeObject> envelop)
Creates an options with default provider.
|
ExtendedOptions(IsChart chart,
IsDefaultScaledOptions defaultValues,
ConfigurationEnvelop<NativeObject> envelop)
Creates an options with default provider.
|
Modifier and Type | Method and Description |
---|---|
IsChart |
getChart()
Returns the chart instance which is using the options.
|
<T extends NativeObjectContainer> |
getRemappedOptions(ControllerMapperFactory<T> factory)
Returns the options, mapped with a custom object, used for controllers to map the options.
It uses a factory instance to create a customized options. If factory argument is not consistent, null is returned. |
ExtendedScales |
getScales()
Returns the scale/axis defaults.
|
Segment |
getSegment()
Returns the segment configuration for
LineOptions .Line segment styles can be overridden by scriptable options in the segment object.. |
void |
setCallback(ConfigurationEnvelop<AbstractNode> envelop,
Key property,
CallbackProxy.Proxy proxy)
Adds a callback proxy function to a element node instance.
|
void |
setCallback(ConfigurationEnvelop<AbstractNode> envelop,
Key property,
NativeCallback callback)
Adds a native callback function to a element node instance.
|
void |
setCharbaId(String id)
Sets the CHARBA id when new chart instance is created.
|
void |
setEvent(AbstractNode node,
Key property,
ConfigurationEnvelop<CallbackProxy.Proxy> envelop)
Adds a event proxy function to animation element instance.
|
getAnimation, getAnimationContainer, getAspectRatio, getBackgroundColor, getBackgroundColorAsString, getBorderColor, getBorderColorAsString, getCharbaId, getCircumference, getColor, getColorAsString, getCutout, getCutoutPercentage, getDatasets, getDecimation, getDevicePixelRatio, getElements, getEvents, getFiller, getFont, getHover, getIndexAxis, getInteraction, getLayout, getLegend, getLocale, getPlugins, getRadius, getRadiusPercentage, getResizeDelay, getRotation, getScope, getSpanGapHandler, getSubtitle, getTitle, getTooltips, isDestroyOnDetach, isDrawOnAttach, isMaintainAspectRatio, isResponsive, isShowLine, isSkipNull, isSpanGaps, setAspectRatio, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setCircumference, setColor, setColor, setCutout, setCutoutPercentage, setDestroyOnDetach, setDevicePixelRatio, setDrawOnAttach, setEvents, setEvents, setIndexAxis, setLocale, setMaintainAspectRatio, setRadius, setRadiusPercentage, setResizeDelay, setResponsive, setRotation, setShowLine, setSkipNull
getDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModel
checkAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAspectRatio, getBackgroundColorAsString, getBorderColorAsString, getCircumference, getColorAsString, getCutout, getCutoutPercentage, getDatasets, getDecimation, getDevicePixelRatio, getElements, getEvents, getFiller, getFont, getHover, getIndexAxis, getInteraction, getLayout, getLegend, getLocale, getPlugins, getRadius, getRadiusPercentage, getResizeDelay, getRotation, getSubtitle, getTitle, getTooltips, isDestroyOnDetach, isDrawOnAttach, isMaintainAspectRatio, isResponsive, isShowLine, isSkipNull, isSpanGaps
getTransitions
getAnimation, getAnimations
getSpanGaps, setSpanGaps, setSpanGaps
getAnimations, getTransitions, isAnimationEnabled, setAnimationEnabled
extractScope
public ExtendedOptions(IsChart chart, IsDefaultScaledOptions defaultValues, ConfigurationEnvelop<NativeObject> envelop)
chart
- chart instancedefaultValues
- default provider.envelop
- the envelop for options as native optionspublic ExtendedOptions(IsChart chart, IsDefaultScaledOptions defaultValues, ChartEnvelop<NativeObject> envelop)
chart
- chart instancedefaultValues
- default providerenvelop
- the envelop for options as native optionspublic IsChart getChart()
public void setCharbaId(String id)
id
- CHARBA id.public ExtendedScales getScales()
IsDefaultScaledOptions
getScales
in interface IsDefaultScaledOptions
getScales
in class ScaledOptions
public Segment getSegment()
LineOptions
.LineOptions
public void setCallback(ConfigurationEnvelop<AbstractNode> envelop, Key property, CallbackProxy.Proxy proxy)
envelop
- contains the element node to updateproperty
- property nameproxy
- the function proxy to activatepublic void setCallback(ConfigurationEnvelop<AbstractNode> envelop, Key property, NativeCallback callback)
envelop
- contains the element node to updateproperty
- property namecallback
- the function callback to activatepublic void setEvent(AbstractNode node, Key property, ConfigurationEnvelop<CallbackProxy.Proxy> envelop)
node
- options node element instance.property
- property name.envelop
- contains the function proxy to activate.public final <T extends NativeObjectContainer> T getRemappedOptions(ControllerMapperFactory<T> factory)
null
is returned.T
- type of customized options to returnfactory
- factory instance to create a customized optionsnull
is returned.