We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.charts.events.
Class SeriesLegendItemClickEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<Chart>
-
- com.vaadin.flow.component.charts.events.SeriesLegendItemClickEvent
-
All Implemented Interfaces:
@DomEvent(value="series-legend-item-click") public class SeriesLegendItemClickEvent extends ComponentEvent<Chart> implements HasSeries
The SeriesLegendItemClickEvent class stores information on click events on the charts's legend items that correspond to a chart series.
See Also:
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor and Description SeriesLegendItemClickEvent(Chart source, boolean fromClient, int seriesIndex)
Constructs a SeriesLegendItemClickEvent
-
Method Summary
All Methods Modifier and Type Method and Description int
getSeriesItemIndex()
Returns the index of the series
-
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
SeriesLegendItemClickEvent
public SeriesLegendItemClickEvent(Chart source, boolean fromClient, @EventData(value="event.detail.series.index") int seriesIndex)
Constructs a SeriesLegendItemClickEvent
Parameters:
source
-fromClient
-
-
-
Method Detail
-
getSeriesItemIndex
public int getSeriesItemIndex()
Description copied from interface:
HasSeries
Returns the index of the series
Specified by:
getSeriesItemIndex
in interfaceHasSeries
Returns:
-
-