Class Hover
- java.lang.Object
-
- org.pepstock.charba.client.configuration.Hover
-
public class Hover extends Object
Definitions about how elements appear in the chart, hovering the chart.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InteractionAxisgetAxis()Returns which directions are used in calculating distances.IsChartgetChart()Returns the chart instanceprotected ExtendedOptionsgetConfiguration()Returns the configuration element.InteractionModegetMode()Returns which elements appear in the chart, hovering the chart.protected ConfigurationOptionsgetOptions()Returns the configuration options.booleanisIntersect()if true, the hover mode only applies when the mouse position intersects an item on the chart.voidsetAxis(InteractionAxis axis)Sets which directions are used in calculating distances.voidsetIntersect(boolean intersect)if true, the hover mode only applies when the mouse position intersects an item on the chart.voidsetMode(InteractionMode mode)Sets which elements appear in the chart, hovering the chart.
-
-
-
Method Detail
-
setMode
public void setMode(InteractionMode mode)
Sets which elements appear in the chart, hovering the chart.- Parameters:
mode- which elements appear in the chart, hovering the chart.
-
getMode
public InteractionMode getMode()
Returns which elements appear in the chart, hovering the chart.- Returns:
- which elements appear in the chart, hovering the chart.
-
setIntersect
public void setIntersect(boolean intersect)
if true, the hover mode only applies when the mouse position intersects an item on the chart.- Parameters:
intersect- if true, the hover mode only applies when the mouse position intersects an item on the chart.
-
isIntersect
public boolean isIntersect()
if true, the hover mode only applies when the mouse position intersects an item on the chart.- Returns:
- if true, the hover mode only applies when the mouse position intersects an item on the chart.
-
setAxis
public void setAxis(InteractionAxis axis)
Sets which directions are used in calculating distances.- Parameters:
axis- define which directions are used in calculating distances.
-
getAxis
public InteractionAxis getAxis()
Returns which directions are used in calculating distances.- Returns:
- define which directions are used in calculating distances.
-
getOptions
protected final ConfigurationOptions getOptions()
Returns the configuration options.- Returns:
- the configuration options.
-
getConfiguration
protected final ExtendedOptions getConfiguration()
Returns the configuration element.- Returns:
- the configuration element.
-
getChart
public final IsChart getChart()
Returns the chart instance- Returns:
- the chart
-
-