public class DataLabelsPointerHandler extends AbstractEventHandler
Constructor and Description |
---|
DataLabelsPointerHandler()
Creates a callback setting
Style.Cursor.POINTER as pointer. |
DataLabelsPointerHandler(Style.Cursor cursor)
Creates a callback setting the pointer cursor what is passed as argument.
|
Modifier and Type | Method and Description |
---|---|
boolean |
onClick(AbstractChart<?,?> chart,
Context context)
Invoked to manage CLICK events on labels.
|
boolean |
onEnter(AbstractChart<?,?> chart,
Context context)
Invoked to manage ENTER events on labels.
|
boolean |
onLeave(AbstractChart<?,?> chart,
Context context)
Invoked to manage LEAVE events on labels.
|
public DataLabelsPointerHandler()
Style.Cursor.POINTER
as pointer.public DataLabelsPointerHandler(Style.Cursor cursor)
cursor
- the cursor type to use. If null
, uses Style.Cursor.POINTER
as pointerpublic boolean onClick(AbstractChart<?,?> chart, Context context)
ClickEventHandler
onClick
in interface ClickEventHandler
onClick
in class AbstractEventHandler
chart
- chart instancecontext
- DATALABELS plugin context instancetrue
, the label is updated with the new context and the chart
re-rendered.public boolean onLeave(AbstractChart<?,?> chart, Context context)
LeaveEventHandler
onLeave
in interface LeaveEventHandler
onLeave
in class AbstractEventHandler
chart
- chart instancecontext
- DATALABELS plugin context instancetrue
, the label is updated with the new context and the chart
re-rendered.public boolean onEnter(AbstractChart<?,?> chart, Context context)
EnterEventHandler
onEnter
in interface EnterEventHandler
onEnter
in class AbstractEventHandler
chart
- chart instancecontext
- DATALABELS plugin context instancetrue
, the label is updated with the new context and the chart
re-rendered.