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.ResizeEvent
All Implemented Interfaces:
Serializable

@DomEvent("resize") public class ResizeEvent extends LeafletEvent
Event fired when the map is resized, carrying the previous and the new size of the map.
See Also:
  • Constructor Details

    • ResizeEvent

      public ResizeEvent(LeafletMap source, boolean fromClient, @EventData("event.detail.target.options.uuid") String layerId, @EventData("event.detail.oldSize.x") double oldSizeX, @EventData("event.detail.oldSize.y") double oldSizeY, @EventData("event.detail.newSize.x") double newSizeX, @EventData("event.detail.newSize.y") double newSizeY)
      Creates a new resize event.
      Parameters:
      source - the source component
      fromClient - true if the event originated on the client side
      layerId - the identifier of the layer that was resized
      oldSizeX - the horizontal size before the resize
      oldSizeY - the vertical size before the resize
      newSizeX - the horizontal size after the resize
      newSizeY - the vertical size after the resize
  • Method Details

    • getOldSize

      public Point getOldSize()
      The old size before resize event.
      Returns:
      the old size before resize event
    • getNewSize

      public Point getNewSize()
      The new size after the resize event.
      Returns:
      the new size after the resize event.
    • toString

      public String toString()
      Overrides:
      toString in class LeafletEvent