public final class ExtendedOptions extends ScaledOptions
Constructor and Description |
---|
ExtendedOptions(IsChart chart,
IsDefaultScaledOptions defaultValues)
Creates an options with default provider.
|
ExtendedOptions(IsChart chart,
IsDefaultScaledOptions defaultValues,
OptionsEnvelop envelop)
Creates an options with default provider.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkAndAddToParent()
Called recursively when a property has been set in the item.
This is mandatory because it could happen that the parent item is not present, therefore it must be added. |
IsChart |
getChart()
Returns the chart instance which is using the options.
|
protected Key |
getChildKey()
Returns the property name to use to add this element to its parent.
|
protected D |
getDefaultValues()
Returns the default provider instance.
|
protected P |
getParent()
Returns the parent element.
|
void |
setCallback(Key property,
CallbackProxy.Proxy proxy)
This method adds new callback function proxy to the element, as property of native java script object.
|
void |
setCallback(LegendLabels labels,
Key property,
CallbackProxy.Proxy proxy)
Adds a event proxy function to legend labels element instance.
|
void |
setCallback(TooltipsCallbacks tooltips,
Key property,
CallbackProxy.Proxy proxy)
Adds a event proxy function to tooltips callbacks element instance.
|
void |
setCallback(Tooltips tooltips,
Key property,
CallbackProxy.Proxy proxy)
Adds a event proxy function to tooltips element instance.
|
protected void |
setCallbackToModel(org.pepstock.charba.client.options.AbstractModel<?,?> model,
Key key,
CallbackProxy.Proxy proxy)
Adds a proxy function (for callbacks) to a model at the specific key.
|
void |
setCharbaId(String id)
Sets the CHARBA id when new chart instance is created.
|
void |
setEvent(Animation animation,
Key property,
CallbackProxy.Proxy proxy)
Adds a event proxy function to animation element instance.
|
void |
setEvent(Key property,
CallbackProxy.Proxy proxy)
This method adds new event function proxy to the element, as property of native java script object.
|
void |
setEvent(Legend legend,
Key property,
CallbackProxy.Proxy proxy)
Adds a event proxy function to legend element instance.
|
protected void |
setEventToModel(org.pepstock.charba.client.options.AbstractModel<?,?> model,
Key key,
CallbackProxy.Proxy proxy)
Adds a proxy function (for events) to a model at the specific key.
|
getScale, getScales, setScale
getAnimation, getAspectRatio, getCharbaId, getCircumference, getCutoutPercentage, getDefaultColor, getDefaultColorAsString, getDefaultFontColor, getDefaultFontColorAsString, getDefaultFontFamily, getDefaultFontSize, getDefaultFontStyle, getDefaultLineHeight, getDevicePixelRatio, getElements, getEvents, getHover, getLayout, getLegend, getPlugins, getResponsiveAnimationDuration, getRotation, getStartAngle, getTitle, getTooltips, isDestroyOnDetach, isDrawOnAttach, isMaintainAspectRatio, isResponsive, isShowLines, isSpanGaps, setAspectRatio, setCircumference, setCutoutPercentage, setDefaultColor, setDefaultColor, setDefaultFontColor, setDefaultFontColor, setDefaultFontFamily, setDefaultFontSize, setDefaultFontStyle, setDefaultLineHeight, setDestroyOnDetach, setDevicePixelRatio, setDrawOnAttach, setEvents, setMaintainAspectRatio, setResponsive, setResponsiveAnimationDuration, setRotation, setShowLines, setSpanGaps, setStartAngle
checkValue, empty, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnimation, getAspectRatio, getCircumference, getCutoutPercentage, getDefaultColorAsString, getDefaultFontColorAsString, getDefaultFontFamily, getDefaultFontSize, getDefaultFontStyle, getDefaultLineHeight, getDevicePixelRatio, getElements, getHover, getLayout, getLegend, getPlugins, getResponsiveAnimationDuration, getRotation, getStartAngle, getTitle, getTooltips, isDestroyOnDetach, isDrawOnAttach, isMaintainAspectRatio, isResponsive, isShowLines, isSpanGaps
public ExtendedOptions(IsChart chart, IsDefaultScaledOptions defaultValues)
chart
- chart instancedefaultValues
- default provider.public ExtendedOptions(IsChart chart, IsDefaultScaledOptions defaultValues, OptionsEnvelop envelop)
chart
- chart instancedefaultValues
- default providerenvelop
- the envelop for options as native optionspublic IsChart getChart()
public void setCharbaId(String id)
id
- CHARBA id.public void setEvent(Key property, CallbackProxy.Proxy proxy)
property
- property name.proxy
- function proxy to activate.public void setCallback(Key property, CallbackProxy.Proxy proxy)
property
- property name.proxy
- function proxy to activate.public void setEvent(Animation animation, Key property, CallbackProxy.Proxy proxy)
animation
- animation element instance.property
- property name.proxy
- function proxy to activate.public void setEvent(Legend legend, Key property, CallbackProxy.Proxy proxy)
legend
- legend element instanceproperty
- property name.proxy
- function proxy to activate.public void setCallback(LegendLabels labels, Key property, CallbackProxy.Proxy proxy)
labels
- legend labels element instance.property
- property name.proxy
- function proxy to activate.public void setCallback(Tooltips tooltips, Key property, CallbackProxy.Proxy proxy)
tooltips
- tooltips element instance.property
- property name.proxy
- function proxy to activate.public void setCallback(TooltipsCallbacks tooltips, Key property, CallbackProxy.Proxy proxy)
tooltips
- tooltips callbacks element instance.property
- property name.proxy
- function proxy to activate.protected final Key getChildKey()
null
if is a root element.protected final P getParent()
null
if is a root element.protected final D getDefaultValues()
protected final void setEventToModel(org.pepstock.charba.client.options.AbstractModel<?,?> model, Key key, CallbackProxy.Proxy proxy)
model
- element where adding the function proxykey
- property name to use to add the function proxyproxy
- the function proxy instance to addprotected final void setCallbackToModel(org.pepstock.charba.client.options.AbstractModel<?,?> model, Key key, CallbackProxy.Proxy proxy)
model
- element where adding the function proxykey
- property name to use to add the function proxyproxy
- the function proxy instance to addprotected final void checkAndAddToParent()