Interface LeaveEventHandler

  • All Known Implementing Classes:
    AbstractEventHandler, DataLabelsPointerHandler, DataLabelsSelectionHandler

    public interface LeaveEventHandler
    Callback interface of DataLabelsPlugin.ID plugin to manage LEAVE events on labels.
    Charba events need to be enabled in order to get the associated label event working.
    If the callback explicitly returns true, the label is updated with the new context and the chart re-rendered. This allows to implement visual interactions with labels such as highlight, selection, etc.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • onLeave

        boolean onLeave​(DataLabelsContext context,
                        ChartEventContext event)
        Invoked to manage LEAVE events on labels.
        Parameters:
        context - DataLabelsPlugin.ID plugin context instance
        event - event instance
        Returns:
        If the callback explicitly returns true, the label is updated with the new context and the chart re-rendered.