Class AbstractEventHandler
- java.lang.Object
-
- org.pepstock.charba.client.datalabels.events.AbstractEventHandler
-
- All Implemented Interfaces:
ClickEventHandler
,EnterEventHandler
,LeaveEventHandler
- Direct Known Subclasses:
DataLabelsPointerHandler
public abstract class AbstractEventHandler extends Object implements EnterEventHandler, LeaveEventHandler, ClickEventHandler
Abstract event handler which implements all interfaces to listen DATA LABELS events.
Can be used as base class for custom implementation.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Constructor Description AbstractEventHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
onClick(DataLabelsContext context, ChartEventContext event)
Invoked to manage CLICK events on labels.boolean
onEnter(DataLabelsContext context, ChartEventContext event)
Invoked to manage ENTER events on labels.boolean
onLeave(DataLabelsContext context, ChartEventContext event)
Invoked to manage LEAVE events on labels.
-
-
-
Method Detail
-
onClick
public boolean onClick(DataLabelsContext context, ChartEventContext event)
Description copied from interface:ClickEventHandler
Invoked to manage CLICK events on labels.- Specified by:
onClick
in interfaceClickEventHandler
- Parameters:
context
-DataLabelsPlugin.ID
plugin context instanceevent
- event instance- Returns:
- If the callback explicitly returns
true
, the label is updated with the new context and the chart re-rendered.
-
onLeave
public boolean onLeave(DataLabelsContext context, ChartEventContext event)
Description copied from interface:LeaveEventHandler
Invoked to manage LEAVE events on labels.- Specified by:
onLeave
in interfaceLeaveEventHandler
- Parameters:
context
-DataLabelsPlugin.ID
plugin context instanceevent
- event instance- Returns:
- If the callback explicitly returns
true
, the label is updated with the new context and the chart re-rendered.
-
onEnter
public boolean onEnter(DataLabelsContext context, ChartEventContext event)
Description copied from interface:EnterEventHandler
Invoked to manage ENTER events on labels.- Specified by:
onEnter
in interfaceEnterEventHandler
- Parameters:
context
-DataLabelsPlugin.ID
plugin context instanceevent
- event instance- Returns:
- If the callback explicitly returns
true
, the label is updated with the new context and the chart re-rendered.
-
-