public class Hover extends Object
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.
|
public void setMode(InteractionMode mode)
mode
- which elements appear in the tooltip.public InteractionMode getMode()
public 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()
public void setAnimationDuration(int milliseconds)
milliseconds
- duration in milliseconds it takes to animate hover style changes.public int getAnimationDuration()
public void setAxis(InteractionAxis axis)
axis
- define which directions are used in calculating distances.public InteractionAxis getAxis()