Class DefaultChartInteraction
- java.lang.Object
-
- org.pepstock.charba.client.defaults.chart.DefaultChartInteraction
-
- All Implemented Interfaces:
IsDefaultInteraction
- Direct Known Subclasses:
DefaultChartHover
public class DefaultChartInteraction extends Object implements IsDefaultInteraction
Defaults for interaction option element, based on chart type.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Constructor Description DefaultChartInteraction(IsDefaultInteraction interaction)Creates the object by interaction option element instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InteractionAxisgetAxis()Returns which directions are used in calculating distances.InteractionModegetMode()Returns which elements appear in the tooltip.booleanisIntersect()if true, the hover mode only applies when the mouse position intersects an item on the chart.
-
-
-
Constructor Detail
-
DefaultChartInteraction
public DefaultChartInteraction(IsDefaultInteraction interaction)
Creates the object by interaction option element instance.- Parameters:
interaction- interaction option element instance.
-
-
Method Detail
-
getMode
public final InteractionMode getMode()
Description copied from interface:IsDefaultInteractionReturns which elements appear in the tooltip.- Specified by:
getModein interfaceIsDefaultInteraction- Returns:
- which elements appear in the tooltip.
-
isIntersect
public final boolean isIntersect()
Description copied from interface:IsDefaultInteractionif true, the hover mode only applies when the mouse position intersects an item on the chart.- Specified by:
isIntersectin interfaceIsDefaultInteraction- Returns:
- if true, the hover mode only applies when the mouse position intersects an item on the chart.
-
getAxis
public final InteractionAxis getAxis()
Description copied from interface:IsDefaultInteractionReturns which directions are used in calculating distances.- Specified by:
getAxisin interfaceIsDefaultInteraction- Returns:
- define which directions are used in calculating distances.
-
-