public final class ExtendedScale extends Scale
| Constructor and Description |
|---|
ExtendedScale(IsDefaultScale defaultValues)
Creates a scale 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. |
int |
getCharbaId()
Returns the unique id of scale.
|
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(AbstractTick<?,?> tick,
Key property,
CallbackProxy.Proxy proxy)
Adds a callback proxy function to tick element instance.
|
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(PointLabels pointLabels,
Key property,
CallbackProxy.Proxy proxy)
Adds a callback proxy function to point labels 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.
|
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.
|
getAngleLines, getBounds, getDisplay, getDistribution, getGrideLines, getId, getPointLabels, getPosition, getScaleLabel, getTicks, getTime, getType, getWeight, isOffset, isStacked, setBounds, setDisplay, setDisplay, setDistribution, setId, setOffset, setPosition, setStacked, setType, setWeightcheckValue, 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, typepublic ExtendedScale(IsDefaultScale defaultValues)
defaultValues - default provider.public int getCharbaId()
public void setCallback(Key property, CallbackProxy.Proxy proxy)
property - property name.proxy - function proxy to activate.public void setCallback(AbstractTick<?,?> tick, Key property, CallbackProxy.Proxy proxy)
tick - tick element instance.property - property name.proxy - function proxy to activate.public void setCallback(PointLabels pointLabels, Key property, CallbackProxy.Proxy proxy)
pointLabels - point labels 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()