We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.charts.events.
Class SeriesClickEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<Chart>
-
- com.vaadin.flow.component.charts.events.SeriesClickEvent
-
All Implemented Interfaces:
@DomEvent("series-click") public class SeriesClickEvent extends ComponentEvent<Chart> implements ClickEvent, HasSeries
The SeriesClickEvent class stores data for click events on the series of the chart.
See Also:
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description SeriesClickEvent​(Chart source, boolean fromClient, int pageX, int pageY, boolean altKey, boolean ctrlKey, boolean metaKey, boolean shiftKey, int button, double x, double y, int seriesIndex)
-
Method Summary
All Methods Modifier and Type Method Description MouseEventDetails
getMouseDetails()
Gets the mouse click details
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
-
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
-
SeriesClickEvent
public SeriesClickEvent​(Chart source, boolean fromClient, @EventData("event.detail.originalEvent.pageX") int pageX, @EventData("event.detail.originalEvent.pageY") int pageY, @EventData("event.detail.originalEvent.altKey") boolean altKey, @EventData("event.detail.originalEvent.ctrlKey") boolean ctrlKey, @EventData("event.detail.originalEvent.metaKey") boolean metaKey, @EventData("event.detail.originalEvent.shiftKey") boolean shiftKey, @EventData("event.detail.originalEvent.button") int button, @EventData("event.detail.originalEvent.point.x") double x, @EventData("event.detail.originalEvent.point.y") double y, @EventData("event.detail.originalEvent.point.series.index") int seriesIndex)
-
-
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:
-
-