Interface Interactioner
-
- All Known Implementing Classes:
AbstractInteractioner,DefaultInteractionMode
public interface InteractionerInterface to be implemented to create a custom interaction mode where you can decide how and which elements will be managed interacting with chart events and tooltips.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description IsInteractionModegetMode()Returns the name of interaction mode which must be used in chart options.List<InteractionItem>invoke(IsChart chart, ChartEventContext event, InteractionOptions options, boolean useFinalPosition)Returns items which must be managed by CHART.JS event or hovering handler and by tooltips.static booleanisValid(Interactioner interactioner)Returnstrueif interactioner passed as argument is notnulland its mode is notnullas well.
-
-
-
Method Detail
-
isValid
static boolean isValid(Interactioner interactioner)
Returnstrueif interactioner passed as argument is notnulland its mode is notnullas well.- Parameters:
interactioner- interactioner to be checked- Returns:
trueif interactioner passed as argument is notnulland its mode is notnull
-
getMode
IsInteractionMode getMode()
Returns the name of interaction mode which must be used in chart options.- Returns:
- the name of interaction mode
-
invoke
List<InteractionItem> invoke(IsChart chart, ChartEventContext event, InteractionOptions options, boolean useFinalPosition)
Returns items which must be managed by CHART.JS event or hovering handler and by tooltips.- Parameters:
chart- the chart we are returning items fromevent- the event we are find things atoptions- options to useuseFinalPosition- use final element position (animation target)- Returns:
- items that are found
-
-