public final class DataLabelsSelectionHandler extends DataLabelsPointerHandler
DataLabelsPlugin.ID event callbacks to invoke dataset selection handlers if there were defined.DEFAULT_CURSOR| Constructor and Description |
|---|
DataLabelsSelectionHandler()
Creates a callback setting
CursorType.POINTER as pointer. |
DataLabelsSelectionHandler(CursorType cursor)
Creates a callback setting the pointer cursor what is passed as argument.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDatasetSelectionEventHandler(DatasetSelectionEventHandler handler)
Adds a dataset selection handler instance to be invoke at click event.
|
boolean |
onClick(IsChart chart,
ScriptableContext context)
Invoked to manage CLICK events on labels.
|
boolean |
removeDatasetSelectionEventHandler(DatasetSelectionEventHandler handler)
Removes a dataset selection handler instance.
|
getCursor, onEnter, onLeavepublic DataLabelsSelectionHandler()
CursorType.POINTER as pointer.public DataLabelsSelectionHandler(CursorType cursor)
cursor - the cursor type to use. If null, uses CursorType.POINTER as pointerpublic void addDatasetSelectionEventHandler(DatasetSelectionEventHandler handler)
handler - dataset selection handler instance to be invoke at click eventpublic boolean removeDatasetSelectionEventHandler(DatasetSelectionEventHandler handler)
handler - dataset selection handler instancetrue if the handler has been removed, otherwise falsepublic boolean onClick(IsChart chart, ScriptableContext context)
ClickEventHandleronClick in interface ClickEventHandleronClick in class AbstractEventHandlerchart - chart instancecontext - DataLabelsPlugin.ID plugin context instancetrue, the label is updated with the new context and the chart re-rendered.