Package com.storedobject.vaadin
Class Svg.ClickEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<Svg>
com.storedobject.vaadin.Svg.Event
com.storedobject.vaadin.Svg.ClickEvent
- All Implemented Interfaces:
Serializable
- Enclosing class:
Svg
Represents a click event triggered by user interaction with an SVG component.
This class provides metadata about the click event, including the coordinates
of the mouse pointer, the id of the clicked element, and the tag name of the
element that was clicked.
The event is generated in the context of an SVG component and is designed to handle client-side interactions such as mouse clicks.
- Author:
- Syam
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionClickEvent(Svg source, boolean fromClient, double clientX, double clientY, String elementId, String tagName) Creates a new event using the given source and indicator whether the event originated from the client side or the server side. -
Method Summary
Methods inherited from class com.storedobject.vaadin.Svg.Event
getChart, getClientX, getClientY, getNode, getNodeId, getTagName, getValue, getValueIdMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListenerMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
ClickEvent
public ClickEvent(Svg source, boolean fromClient, @EventData("event.clientX") double clientX, @EventData("event.clientY") double clientY, @EventData("event.target.id") String elementId, @EventData("event.target.tagName") String tagName) Creates a new event using the given source and indicator whether the event originated from the client side or the server side.- Parameters:
source- the source componentfromClient-trueif the event originated from the client side,falseotherwiseclientX- the x coordinate of the mouse pointerclientY- the y coordinate of the mouse pointerelementId- the id of the element that was clickedtagName- the tag name of the element that was clicked
-