Interface HasEvents
-
- All Superinterfaces:
IsDefaultEventHandler
- All Known Implementing Classes:
AbstractPluginOptions
,AnnotationOptions
,ChartBackgroundColorOptions
,ChartOptions
,ChartPointerOptions
,ColorSchemesOptions
,CrosshairOptions
,DataLabelsOptions
,DatasetsItemsSelectorOptions
,ExtendedOptions
,GlobalOptions
,GradientOptions
,HtmlLegendOptions
,LabelItem
,LabelsOptions
,Legend
,Options
,OptionsNode
,ScaledOptions
,Tooltips
,ZoomOptions
public interface HasEvents extends IsDefaultEventHandler
Defines a configuration element which is managing the EVENTS property.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Set<Event>
getEvents()
Returns the browser events that the chart should listen to.EventsOptionHandler
getEventsOptionHandler()
Returns a event handler handler instance to use in the default methods of this interface.default void
setEvents(Set<Event> events)
Sets the browser events that the legend should listen to.default void
setEvents(Event... events)
Sets the browser events that the chart should listen to.
-
-
-
Method Detail
-
getEventsOptionHandler
EventsOptionHandler getEventsOptionHandler()
Returns a event handler handler instance to use in the default methods of this interface.- Returns:
- a event handler handler instance
-
setEvents
default void setEvents(Event... events)
Sets the browser events that the chart should listen to.- Parameters:
events
- the browser events that the chart should listen to.
-
setEvents
default void setEvents(Set<Event> events)
Sets the browser events that the legend should listen to.- Parameters:
events
- the browser events that the legend should listen to.
-
getEvents
default Set<Event> getEvents()
Returns the browser events that the chart should listen to.- Specified by:
getEvents
in interfaceIsDefaultEventHandler
- Returns:
- the browser events that the chart should listen to.
-
-