Class TileEvent
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.TileEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TileErrorEvent,TileLoadEvent,TileLoadStartEvent,TileUnloadEvent
Base class for the Leaflet tile lifecycle events (tileloadstart, tileload, tileunload and
tileerror), carrying the coordinates of the tile the event relates to.
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionTileEvent(LeafletMap source, boolean fromClient, String layerId, TileEventType eventType, Point coords) Creates a new tile event. -
Method Summary
Methods 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
-
TileEvent
public TileEvent(LeafletMap source, boolean fromClient, String layerId, TileEventType eventType, Point coords) Creates a new tile event.- Parameters:
source- the source componentfromClient-trueif the event originated on the client sidelayerId- the identifier of the tile layer the event relates toeventType- the type of the tile eventcoords- the tile coordinates (x, y and z zoom level)
-
-
Method Details
-
getCoords
Point object with the tile's x, y, and z (zoom level) coordinates.- Returns:
- the coords
-
toString
- Overrides:
toStringin classLeafletEvent
-