Class DefaultInteraction
- java.lang.Object
-
- org.pepstock.charba.client.defaults.globals.DefaultInteraction
-
- All Implemented Interfaces:
IsDefaultInteraction
- Direct Known Subclasses:
DefaultHover
public class DefaultInteraction extends Object implements IsDefaultInteraction
CHART.JS default values for INTERACTION element.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InteractionAxis
getAxis()
Returns which directions are used in calculating distances.InteractionMode
getMode()
Returns which elements appear in the tooltip.boolean
isIncludeInvisible()
If true, the invisible points that are outside of the chart area will also be included when evaluating interactions.boolean
isIntersect()
If true, the hover mode only applies when the mouse position intersects an item on the chart.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultInteraction
create
-
-
-
-
Method Detail
-
getMode
public InteractionMode getMode()
Description copied from interface:IsDefaultInteraction
Returns which elements appear in the tooltip.- Specified by:
getMode
in interfaceIsDefaultInteraction
- Returns:
- which elements appear in the tooltip.
-
isIntersect
public boolean isIntersect()
Description copied from interface:IsDefaultInteraction
If true, the hover mode only applies when the mouse position intersects an item on the chart.- Specified by:
isIntersect
in interfaceIsDefaultInteraction
- Returns:
- if true, the hover mode only applies when the mouse position intersects an item on the chart.
-
getAxis
public InteractionAxis getAxis()
Description copied from interface:IsDefaultInteraction
Returns which directions are used in calculating distances.- Specified by:
getAxis
in interfaceIsDefaultInteraction
- Returns:
- define which directions are used in calculating distances.
-
isIncludeInvisible
public boolean isIncludeInvisible()
Description copied from interface:IsDefaultInteraction
If true, the invisible points that are outside of the chart area will also be included when evaluating interactions.- Specified by:
isIncludeInvisible
in interfaceIsDefaultInteraction
- Returns:
- if true, the invisible points that are outside of the chart area will also be included when evaluating interactions.
-
-