public class Hover extends Object
Modifier and Type | Method and Description |
---|---|
InteractionAxis |
getAxis()
Returns to 'x', 'y', or 'xy' to define which directions are used in calculating distances.
|
IsChart |
getChart()
Returns the chart instance
|
protected ExtendedOptions |
getConfiguration()
Returns the configuration element.
|
InteractionMode |
getMode()
Returns which elements appear in the tooltip.
|
protected ConfigurationOptions |
getOptions()
Returns the configuration options.
|
boolean |
isIntersect()
if true, the hover mode only applies when the mouse position intersects an item on the chart.
|
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 data set 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 setAxis(InteractionAxis axis)
axis
- define which directions are used in calculating distances.public InteractionAxis getAxis()
protected final ConfigurationOptions getOptions()
protected final ExtendedOptions getConfiguration()
public final IsChart getChart()