Class SeriesLegendItemClickEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Map>
com.vaadin.componentfactory.maps.events.SeriesLegendItemClickEvent
- All Implemented Interfaces:
ClickEvent,HasSeries,Serializable
@DomEvent("series-legend-item-click")
public class SeriesLegendItemClickEvent
extends com.vaadin.flow.component.ComponentEvent<Map>
implements ClickEvent, HasSeries
The SeriesLegendItemClickEvent class stores information on click events on
the charts's legend items that correspond to a chart series.
- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionSeriesLegendItemClickEvent(Map source, boolean fromClient, int pageX, int pageY, int screenX, int screenY, boolean altKey, boolean ctrlKey, boolean metaKey, boolean shiftKey, int button, int seriesIndex) Constructs a SeriesLegendItemClickEvent -
Method Summary
Modifier and TypeMethodDescriptionGets the mouse click detailsintReturns the index of the seriesMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vaadin.componentfactory.maps.events.ClickEvent
getAbsoluteX, getAbsoluteY, getButton, getxAxisValue, getyAxisValue, isAltKey, isCtrlKey, isMetaKey, isShiftKey
-
Constructor Details
-
SeriesLegendItemClickEvent
public SeriesLegendItemClickEvent(Map source, boolean fromClient, @EventData("event.detail.originalEvent.browserEvent.pageX") int pageX, @EventData("event.detail.originalEvent.browserEvent.pageY") int pageY, @EventData("event.detail.originalEvent.browserEvent.screenX") int screenX, @EventData("event.detail.originalEvent.browserEvent.screenY") int screenY, @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.browserEvent.button") int button, @EventData("event.detail.series.index") int seriesIndex) Constructs a SeriesLegendItemClickEvent- Parameters:
source- aMapobject.fromClient- a boolean.pageX- a int.pageY- a int.screenX- a int.screenY- a int.altKey- a boolean.ctrlKey- a boolean.metaKey- a boolean.shiftKey- a boolean.button- a int.seriesIndex- a int.
-
-
Method Details
-
getSeriesItemIndex
public int getSeriesItemIndex()Returns the index of the series- Specified by:
getSeriesItemIndexin interfaceHasSeries- Returns:
- index of the series
-
getMouseDetails
Gets the mouse click details- Specified by:
getMouseDetailsin interfaceClickEvent- Returns:
- mouse click details
-