public final class Hover extends AbstractModel<Options,IsDefaultHover> implements IsDefaultHover
Modifier and Type | Method and Description |
---|---|
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.
|
InteractionMode |
getMode()
Returns which elements appear in the tooltip.
|
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. |
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.
|
checkAndAddToParent, getChildKey, getDefaultValues, getParent, setCallbackToModel, setEventToModel
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, type
public void setMode(InteractionMode mode)
mode
- which elements appear in the tooltip.public InteractionMode getMode()
getMode
in interface IsDefaultHover
public 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 boolean isIntersect()
true
, the hover mode only applies when the mouse position intersects an item on the chart.isIntersect
in interface IsDefaultHover
true
, the hover mode only applies when the mouse position intersects an item on the chart.public void setAnimationDuration(int milliseconds)
milliseconds
- duration in milliseconds it takes to animate hover style changes.public int getAnimationDuration()
getAnimationDuration
in interface IsDefaultHover
public void setAxis(InteractionAxis axis)
axis
- define which directions are used in calculating distances.public InteractionAxis getAxis()
getAxis
in interface IsDefaultHover