Class SeriesLegendItemClickEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<Chart>
-
- com.vaadin.flow.component.charts.events.SeriesLegendItemClickEvent
-
- All Implemented Interfaces:
ClickEvent
,HasSeries
,Serializable
@DomEvent("series-legend-item-click") public class SeriesLegendItemClickEvent extends ComponentEvent<Chart> implements ClickEvent, HasSeries
The SeriesLegendItemClickEvent class stores information on click events on the charts's legend items that correspond to a chart series.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description SeriesLegendItemClickEvent​(Chart source, boolean fromClient, int pageX, int pageY, boolean altKey, boolean ctrlKey, boolean metaKey, boolean shiftKey, int button, int seriesIndex)
Constructs a SeriesLegendItemClickEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MouseEventDetails
getMouseDetails()
Gets the mouse click detailsint
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.vaadin.flow.component.charts.events.ClickEvent
getAbsoluteX, getAbsoluteY, getButton, getxAxisValue, getyAxisValue, isAltKey, isCtrlKey, isMetaKey, isShiftKey
-
-
-
-
Constructor Detail
-
SeriesLegendItemClickEvent
public SeriesLegendItemClickEvent​(Chart source, boolean fromClient, @EventData("event.detail.originalEvent.browserEvent.pageX") int pageX, @EventData("event.detail.originalEvent.browserEvent.pageY") int pageY, @EventData("event.detail.originalEvent.browserEvent.altKey") boolean altKey, @EventData("event.detail.originalEvent.browserEvent.ctrlKey") boolean ctrlKey, @EventData("event.detail.originalEvent.browserEvent.metaKey") boolean metaKey, @EventData("event.detail.originalEvent.browserEvent.shiftKey") boolean shiftKey, @EventData("event.detail.originalEvent.button") int button, @EventData("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:
-
getMouseDetails
public MouseEventDetails getMouseDetails()
Description copied from interface:ClickEvent
Gets the mouse click details- Specified by:
getMouseDetails
in interfaceClickEvent
- Returns:
-
-