public class DataLabelsPointerHandler extends AbstractEventHandler
| Modifier and Type | Field and Description |
|---|---|
static CursorType |
DEFAULT_CURSOR
Default pointer cursor to use if omitted,
CursorType.POINTER. |
| Constructor and Description |
|---|
DataLabelsPointerHandler()
Creates a callback setting the
DEFAULT_CURSOR as pointer. |
DataLabelsPointerHandler(CursorType cursor)
Creates a callback setting the pointer cursor what is passed as argument.
|
| Modifier and Type | Method and Description |
|---|---|
CursorType |
getCursor()
Returns the pointer cursor to use.
|
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.
|
onClickpublic static final CursorType DEFAULT_CURSOR
CursorType.POINTER.public DataLabelsPointerHandler()
DEFAULT_CURSOR as pointer.public DataLabelsPointerHandler(CursorType cursor)
cursor - the cursor type to use. If null, uses DEFAULT_CURSOR as pointerpublic final CursorType getCursor()
public boolean onLeave(DataLabelsContext context, ChartEventContext event)
LeaveEventHandleronLeave in interface LeaveEventHandleronLeave in class AbstractEventHandlercontext - DataLabelsPlugin.ID plugin context instanceevent - event instancetrue, the label is updated with the new context and the chart re-rendered.public boolean onEnter(DataLabelsContext context, ChartEventContext event)
EnterEventHandleronEnter in interface EnterEventHandleronEnter in class AbstractEventHandlercontext - DataLabelsPlugin.ID plugin context instanceevent - event instancetrue, the label is updated with the new context and the chart re-rendered.