com.vaadin.flow.component.charts.events.
Class PointLegendItemClickEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<Chart>
-
- com.vaadin.flow.component.charts.events.PointLegendItemClickEvent
-
All Implemented Interfaces:
@DomEvent(value="point-legend-item-click") public class PointLegendItemClickEvent extends ComponentEvent<Chart> implements HasItem
The PointLegendItemClickEvent class stores information on click events on the charts's legend items that correspond to a chart point.
See Also:
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor and Description PointLegendItemClickEvent(Chart source, boolean fromClient, int seriesIndex, String category, int pointIndex)
Constructs a SeriesLegendItemClickEvent
-
Method Summary
All Methods Modifier and Type Method and Description String
getCategory()
int
getItemIndex()
Returns the index of
HasItem.getItem()
inHasSeries.getSeries()
.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
-
PointLegendItemClickEvent
public PointLegendItemClickEvent(Chart source, boolean fromClient, @EventData(value="event.detail.point.series.index") int seriesIndex, @EventData(value="event.detail.point.category") String category, @EventData(value="event.detail.point.index") int pointIndex)
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:
-
getCategory
public String getCategory()
Specified by:
getCategory
in interfaceHasItem
-
getItemIndex
public int getItemIndex()
Description copied from interface:
HasItem
Returns the index of
HasItem.getItem()
inHasSeries.getSeries()
.Specified by:
getItemIndex
in interfaceHasItem
Returns:
-
-