public final class Hover extends NativeObjectContainer implements IsDefaultHover
| 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 |
getAnimationDuration()
Returns the duration in milliseconds it takes to animate hover style changes.
|
InteractionAxis |
getAxis()
Returns to 'x', 'y', or 'xy' to define which directions are used in calculating distances.
|
protected Key |
getChildKey()
Returns the property name to use to add this element to its parent.
|
protected D |
getDefaultValues()
Returns the default provider instance.
|
InteractionMode |
getMode()
Returns which elements appear in the tooltip.
|
protected P |
getParent()
Returns the parent element.
|
boolean |
isIntersect()
if
true, the hover mode only applies when the mouse position intersects an item on the chart. |
void |
setAnimationDuration(int milliseconds)
Sets the duration in milliseconds it takes to animate hover style changes.
|
void |
setAxis(InteractionAxis axis)
Sets to 'x', 'y', or 'xy' to define which directions are used in calculating distances.
Defaults to 'x' for index mode and 'xy' in dataset and nearest modes. |
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.
|
void |
setIntersect(boolean intersect)
if
true, the hover mode only applies when the mouse position intersects an item on the chart. |
void |
setMode(InteractionMode mode)
Sets which elements appear in the tooltip.
|
checkValue, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, 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, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMode, isIntersectpublic void setAnimationDuration(int milliseconds)
milliseconds - duration in milliseconds it takes to animate hover style changes.public int getAnimationDuration()
getAnimationDuration in interface IsDefaultHoverpublic void setAxis(InteractionAxis axis)
axis - define which directions are used in calculating distances.public InteractionAxis getAxis()
getAxis in interface IsDefaultHoverpublic final void setMode(InteractionMode mode)
mode - which elements appear in the tooltip.public final InteractionMode getMode()
public final void setIntersect(boolean intersect)
true, the hover mode only applies when the mouse position intersects an item on the chart.intersect - if true, the hover mode only applies when the mouse position intersects an item on the
chart.public final boolean isIntersect()
true, the hover mode only applies when the mouse position intersects an item on the chart.true, the hover mode only applies when the mouse position intersects an item on the chart.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()