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 ChartClickEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Chart>
com.vaadin.flow.component.charts.events.ChartClickEvent
All Implemented Interfaces:
@DomEvent("chart-click")
public class ChartClickEvent
extends ComponentEvent<Chart>
implements ClickEvent
The ChartClickEvent class stores information on click events anywhere on the area of the chart.
See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionChartClickEvent
(Chart source, boolean fromClient, Double x, Double y, int pageX, int pageY, boolean altKey, boolean ctrlKey, boolean metaKey, boolean shiftKey, int button) Constructs a ChartClickEvent
-
Method Summary
Modifier and TypeMethodDescriptionGets the mouse click details
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 Details
-
ChartClickEvent
public ChartClickEvent(Chart source, boolean fromClient, @EventData("event.detail.xValue") Double x, @EventData("event.detail.yValue") Double y, @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) Constructs a ChartClickEvent
Parameters:
source
-fromClient
-pageX
-pageY
-altKey
-ctrlKey
-metaKey
-shiftKey
-button
-
-
-
Method Details
-
getMouseDetails
Description copied from interface:
ClickEvent
Gets the mouse click details
Specified by:
getMouseDetails
in interfaceClickEvent
Returns:
-