Class PointLegendItemClickEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Map>
com.vaadin.componentfactory.maps.events.PointLegendItemClickEvent
- All Implemented Interfaces:
HasItem,HasSeries,Serializable
@DomEvent("point-legend-item-click")
public class PointLegendItemClickEvent
extends com.vaadin.flow.component.ComponentEvent<Map>
implements HasItem
The PointLegendItemClickEvent class stores information on click events on the
charts's legend items that correspond to a chart point.
- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionPointLegendItemClickEvent(Map source, boolean fromClient, int seriesIndex, String category, int pointIndex) Constructs a SeriesLegendItemClickEvent -
Method Summary
Modifier and TypeMethodDescriptionintReturns the index ofHasItem.getItem()inHasSeries.getSeries().intReturns the index of the seriesMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
PointLegendItemClickEvent
public PointLegendItemClickEvent(Map source, boolean fromClient, @EventData("event.detail.point.series.index") int seriesIndex, @EventData("event.detail.point.category") String category, @EventData("event.detail.point.index") int pointIndex) Constructs a SeriesLegendItemClickEvent
-
-
Method Details
-
getSeriesItemIndex
public int getSeriesItemIndex()Returns the index of the series- Specified by:
getSeriesItemIndexin interfaceHasSeries- Returns:
- index of the series
-
getCategory
- Specified by:
getCategoryin interfaceHasItem
-
getItemIndex
public int getItemIndex()Returns the index ofHasItem.getItem()inHasSeries.getSeries().- Specified by:
getItemIndexin interfaceHasItem- Returns:
- index of the item
-