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.
|
onClick
public 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)
LeaveEventHandler
onLeave
in interface LeaveEventHandler
onLeave
in class AbstractEventHandler
context
- 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)
EnterEventHandler
onEnter
in interface EnterEventHandler
onEnter
in class AbstractEventHandler
context
- DataLabelsPlugin.ID
plugin context instanceevent
- event instancetrue
, the label is updated with the new context and the chart re-rendered.