Class PointSelectEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Map>
com.vaadin.componentfactory.maps.events.PointSelectEvent
- All Implemented Interfaces:
HasItem,HasSeries,Serializable
@DomEvent("point-select")
public class PointSelectEvent
extends com.vaadin.flow.component.ComponentEvent<Map>
implements HasItem
The PointSelectEvent class stores data for select events on the points of the
chart.
- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionPointSelectEvent(Map source, boolean fromClient, int seriesIndex, String category, int pointIndex) Constructor for PointSelectEvent. -
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
-
PointSelectEvent
public PointSelectEvent(Map source, boolean fromClient, @EventData("event.detail.originalEvent.target.series.index") int seriesIndex, @EventData("event.detail.originalEvent.target.category") String category, @EventData("event.detail.originalEvent.target.index") int pointIndex) Constructor for PointSelectEvent.
-
-
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
-