Class ChartClickEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Chart>
com.vaadin.flow.component.charts.events.ChartClickEvent
- All Implemented Interfaces:
ClickEvent
,Serializable
@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 detailsMethods 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:
-