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 SummaryConstructors Constructor Description DefaultChartInteraction(IsDefaultInteraction interaction)Creates the object by interaction option element instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description InteractionAxisgetAxis()Returns which directions are used in calculating distances.IsInteractionModegetMode()Returns which elements appear in the tooltip.booleanisIncludeInvisible()If true, the invisible points that are outside of the chart area will also be included when evaluating interactions.booleanisIntersect()If true, the hover mode only applies when the mouse position intersects an item on the chart.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.pepstock.charba.client.defaults.IsDefaultInteractioncreate
 
- 
 
- 
- 
- 
Constructor Detail- 
DefaultChartInteractionpublic DefaultChartInteraction(IsDefaultInteraction interaction) Creates the object by interaction option element instance.- Parameters:
- interaction- interaction option element instance.
 
 
- 
 - 
Method Detail- 
getModepublic final IsInteractionMode getMode() Description copied from interface:IsDefaultInteractionReturns which elements appear in the tooltip.- Specified by:
- getModein interface- IsDefaultInteraction
- Returns:
- which elements appear in the tooltip.
 
 - 
isIntersectpublic 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 interface- IsDefaultInteraction
- Returns:
- if true, the hover mode only applies when the mouse position intersects an item on the chart.
 
 - 
getAxispublic final InteractionAxis getAxis() Description copied from interface:IsDefaultInteractionReturns which directions are used in calculating distances.- Specified by:
- getAxisin interface- IsDefaultInteraction
- Returns:
- define which directions are used in calculating distances.
 
 - 
isIncludeInvisiblepublic boolean isIncludeInvisible() Description copied from interface:IsDefaultInteractionIf true, the invisible points that are outside of the chart area will also be included when evaluating interactions.- Specified by:
- isIncludeInvisiblein interface- IsDefaultInteraction
- Returns:
- if true, the invisible points that are outside of the chart area will also be included when evaluating interactions.
 
 
- 
 
-