public class DataLabelsPointerHandler extends AbstractEventHandler
DataLabelsPlugin.ID event callback to change the cursor type when the labels are clickable.| 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)
Invoked to manage ENTER events on labels. 
 | 
boolean | 
onLeave(DataLabelsContext context)
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)
LeaveEventHandleronLeave in interface LeaveEventHandleronLeave in class AbstractEventHandlercontext - DataLabelsPlugin.ID plugin context instancetrue, the label is updated with the new context and the chart re-rendered.public boolean onEnter(DataLabelsContext context)
EnterEventHandleronEnter in interface EnterEventHandleronEnter in class AbstractEventHandlercontext - DataLabelsPlugin.ID plugin context instancetrue, the label is updated with the new context and the chart re-rendered.