public final class Hover extends ChartContainer
| 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.
|
getChartcheckAndGetDoubleValues, checkAndGetEnumValues, checkAndGetIntegerValues, checkAndGetStringValues, checkAndSetDoubleValues, checkAndSetEnumValues, checkAndSetIntegerValues, checkAndSetStringValues, getDoubleArray, getIntegerArray, getJavaScriptObject, getObjectArray, getStringArray, getValue, getValue, getValue, getValue, getValue, getValue, getValue, has, has, hasToBeRegistered, isEmpty, keys, remove, remove, removeIfExists, setDoubleArray, setEnumValueArray, setIntegerArray, setObjectArray, setStringArray, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, typepublic void setMode(InteractionMode mode)
mode - which elements appear in the tooltip.InteractionModepublic InteractionMode getMode()
Options.getHover().InteractionModepublic void setIntersect(boolean intersect)
intersect - if true, the hover mode only applies when the mouse position intersects an item on the chart.public boolean isIntersect()
Options.getHover().public void setAnimationDuration(int milliseconds)
milliseconds - duration in milliseconds it takes to animate hover style changes.public int getAnimationDuration()
Options.getHover().public void setAxis(InteractionAxis axis)
axis - define which directions are used in calculating distances.InteractionAxispublic InteractionAxis getAxis()
Options.getHover().InteractionAxis