Class MousePreClickEvent
java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<LeafletMap>
org.vaadin.addons.componentfactory.leaflet.layer.events.LeafletEvent
org.vaadin.addons.componentfactory.leaflet.layer.events.MouseEvent
org.vaadin.addons.componentfactory.leaflet.layer.events.MousePreClickEvent
- All Implemented Interfaces:
Serializable
Event fired before a click on the map or a layer, just before the corresponding click event.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionMousePreClickEvent(LeafletMap source, boolean fromClient, String layerId, double latitude, double longitude, int layerPointX, int layerPointY, int containerPointX, int containerPointY) Creates a new preclick event. -
Method Summary
Methods inherited from class org.vaadin.addons.componentfactory.leaflet.layer.events.MouseEvent
getContainerPoint, getLatLng, getLayerPoint, toStringMethods inherited from class org.vaadin.addons.componentfactory.leaflet.layer.events.LeafletEvent
getLayerId, getTypeMethods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, getUI, isFromClient, unregisterListener
-
Constructor Details
-
MousePreClickEvent
public MousePreClickEvent(LeafletMap source, boolean fromClient, @EventData("event.detail.target.options.uuid") String layerId, @EventData("event.detail.latlng.lat") double latitude, @EventData("event.detail.latlng.lng") double longitude, @EventData("event.detail.layerPoint.x") int layerPointX, @EventData("event.detail.layerPoint.y") int layerPointY, @EventData("event.detail.containerPoint.x") int containerPointX, @EventData("event.detail.containerPoint.y") int containerPointY) Creates a new preclick event.- Parameters:
source- the source componentfromClient-trueif the event originated on the client sidelayerId- the id of the layer that fired the eventlatitude- the latitude of the point where the event occurredlongitude- the longitude of the point where the event occurredlayerPointX- the x pixel coordinate relative to the map layerlayerPointY- the y pixel coordinate relative to the map layercontainerPointX- the x pixel coordinate relative to the map containercontainerPointY- the y pixel coordinate relative to the map container
-