Interface Interactioner
-
- All Known Implementing Classes:
AbstractInteractioner
,DefaultInteractionMode
public interface Interactioner
Interface 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 IsInteractionMode
getMode()
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 boolean
isValid(Interactioner interactioner)
Returnstrue
if interactioner passed as argument is notnull
and its mode is notnull
as well.
-
-
-
Method Detail
-
isValid
static boolean isValid(Interactioner interactioner)
Returnstrue
if interactioner passed as argument is notnull
and its mode is notnull
as well.- Parameters:
interactioner
- interactioner to be checked- Returns:
true
if interactioner passed as argument is notnull
and 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
-
-