Uses of Class
org.vaadin.addons.componentfactory.leaflet.types.Point
Packages that use Point
Package
Description
-
Uses of Point in org.vaadin.addons.componentfactory.leaflet.layer.events
Methods in org.vaadin.addons.componentfactory.leaflet.layer.events that return PointModifier and TypeMethodDescriptionMouseEvent.getContainerPoint()Pixel coordinates of the point where the mouse event occured relative to the map сontainer.TileEvent.getCoords()Point object with the tile's x, y, and z (zoom level) coordinates.MouseEvent.getLayerPoint()Pixel coordinates of the point where the mouse event occured relative to the map layer.ResizeEvent.getNewSize()The new size after the resize event.ResizeEvent.getOldSize()The old size before resize event.Constructors in org.vaadin.addons.componentfactory.leaflet.layer.events with parameters of type PointModifierConstructorDescriptionMouseEvent(LeafletMap source, boolean fromClient, String layerId, MouseEventType eventType, LatLng latLng, Point layerPoint, Point containerPoint) Creates a new mouse event.TileEvent(LeafletMap source, boolean fromClient, String layerId, TileEventType eventType, Point coords) Creates a new tile event. -
Uses of Point in org.vaadin.addons.componentfactory.leaflet.layer.map.functions
Methods in org.vaadin.addons.componentfactory.leaflet.layer.map.functions that return types with arguments of type PointModifier and TypeMethodDescriptiondefault CompletableFuture<Point> MapConversionFunctions.containerPointToLayerPoint(Point point) Given a pixel coordinate relative to the map container, returns the corresponding pixel coordinate relative to the origin pixel.default CompletableFuture<Point> MapGetStateFunctions.getPixelOrigin()Returns the projected pixel coordinates of the top left point of the map layer (useful in custom layer and overlay implementations).default CompletableFuture<Point> MapGetStateFunctions.getSize()Returns the current size of the map container (in pixels).default CompletableFuture<Point> MapConversionFunctions.latLngToContainerPoint(LatLng latLng) Given a geographical coordinate, returns the corresponding pixel coordinate relative to the map container.default CompletableFuture<Point> MapConversionFunctions.latLngToLayerPoint(LatLng latLng) Given a geographical coordinate, returns the corresponding pixel coordinate relative to the origin pixel.default CompletableFuture<Point> MapConversionFunctions.layerPointToContainerPoint(Point point) Given a pixel coordinate relative to the origin pixel, returns the corresponding pixel coordinate relative to the map container.default CompletableFuture<Point> MapConversionFunctions.mouseEventToContainerPoint(MouseEvent mouseEvent) Given a MouseEvent object, returns the pixel coordinate relative to the map container where the event took place.default CompletableFuture<Point> MapConversionFunctions.mouseEventToLayerPoint(MouseEvent mouseEvent) Given a MouseEvent object, returns the pixel coordinate relative to the origin pixel where the event took place.default CompletableFuture<Point> Projects a geographical coordinate LatLng according to the projection of the map's CRS, then scales it according to zoom and the CRS's Transformation.Methods in org.vaadin.addons.componentfactory.leaflet.layer.map.functions with parameters of type PointModifier and TypeMethodDescriptiondefault CompletableFuture<LatLng> MapConversionFunctions.containerPointToLatLng(Point point) Given a pixel coordinate relative to the map container, returns the corresponding geographical coordinate (for the current zoom level).default CompletableFuture<Point> MapConversionFunctions.containerPointToLayerPoint(Point point) Given a pixel coordinate relative to the map container, returns the corresponding pixel coordinate relative to the origin pixel.default CompletableFuture<Double> MapGetStateFunctions.getBoundsZoom(LatLngBounds bounds, boolean inside, Point padding) Returns the maximum zoom level on which the given bounds fit to the map view in its entirety.default CompletableFuture<Point> MapConversionFunctions.layerPointToContainerPoint(Point point) Given a pixel coordinate relative to the origin pixel, returns the corresponding pixel coordinate relative to the map container.default CompletableFuture<LatLng> MapConversionFunctions.layerPointToLatLng(Point point) Given a pixel coordinate relative to the origin pixel, returns the corresponding geographical coordinate (for the current zoom level).default voidPans the map by a given number of pixels (animated).default voidMapModifyStateFunctions.panBy(Point offset, PanOptions options) Pans the map by a given number of pixels (animated).default voidMapModifyStateFunctions.setZoomAround(Point offset, int zoom, ZoomOptions options) Zooms the map while keeping a specified pixel on the map (relative to the top-left corner) stationary.default CompletableFuture<LatLng> Inverse of project. -
Uses of Point in org.vaadin.addons.componentfactory.leaflet.layer.ui
Methods in org.vaadin.addons.componentfactory.leaflet.layer.ui that return PointMethods in org.vaadin.addons.componentfactory.leaflet.layer.ui with parameters of type Point -
Uses of Point in org.vaadin.addons.componentfactory.leaflet.layer.ui.marker
Methods in org.vaadin.addons.componentfactory.leaflet.layer.ui.marker that return PointModifier and TypeMethodDescriptionMarker.getAutoPanPadding()Returns the padding kept between a dragged marker and the map borders that triggers auto-panning.Methods in org.vaadin.addons.componentfactory.leaflet.layer.ui.marker with parameters of type PointModifier and TypeMethodDescriptionvoidMarker.setAutoPanPadding(Point autoPanPadding) Sets the padding kept between a dragged marker and the map borders that triggers auto-panning. -
Uses of Point in org.vaadin.addons.componentfactory.leaflet.layer.ui.popup
Methods in org.vaadin.addons.componentfactory.leaflet.layer.ui.popup that return PointModifier and TypeMethodDescriptionPopup.getAutoPanPadding()Returns the padding kept between the popup and the map borders during auto-panning.Popup.getAutoPanPaddingBottomRight()Returns the bottom-right padding kept between the popup and the map borders during auto-panning.Popup.getAutoPanPaddingTopLeft()Returns the top-left padding kept between the popup and the map borders during auto-panning.Methods in org.vaadin.addons.componentfactory.leaflet.layer.ui.popup with parameters of type PointModifier and TypeMethodDescriptionvoidPopup.setAutoPanPadding(Point autoPanPadding) Sets the padding kept between the popup and the map borders during auto-panning.voidPopup.setAutoPanPaddingBottomRight(Point autoPanPaddingBottomRight) Sets the bottom-right padding kept between the popup and the map borders during auto-panning.voidPopup.setAutoPanPaddingTopLeft(Point autoPanPaddingTopLeft) Sets the top-left padding kept between the popup and the map borders during auto-panning. -
Uses of Point in org.vaadin.addons.componentfactory.leaflet.options
Methods in org.vaadin.addons.componentfactory.leaflet.options that return PointModifier and TypeMethodDescriptionFitBoundsOptions.getPadding()Gets the padding applied to both the top left and bottom right corners.FitBoundsOptions.getPaddingBottomRight()Gets the padding reserved in the bottom right corner of the map container.FitBoundsOptions.getPaddingTopLeft()Gets the padding reserved in the top left corner of the map container.Methods in org.vaadin.addons.componentfactory.leaflet.options with parameters of type PointModifier and TypeMethodDescriptionvoidFitBoundsOptions.setPadding(Point padding) Equivalent of setting both top left and bottom right padding to the same value.voidFitBoundsOptions.setPaddingBottomRight(Point paddingBottomRight) The same for the bottom right corner of the map.voidFitBoundsOptions.setPaddingTopLeft(Point paddingTopLeft) Sets the amount of padding in the top left corner of a map container that shouldn't be accounted for when setting the view to fit bounds. -
Uses of Point in org.vaadin.addons.componentfactory.leaflet.types
Methods in org.vaadin.addons.componentfactory.leaflet.types that return PointModifier and TypeMethodDescriptionDivIcon.getBgPos()Returns the relative position of the background, in pixels.Bounds.getBottomLeft()Returns the bottom-left point of the bounds.Bounds.getBottomRight()Returns the bottom-right point of the boundsBounds.getCenter()Returns the center point of the bounds.Icon.getIconAnchor()Gets the coordinates of the "tip" of the icon relative to its top-left corner.Icon.getIconSize()Gets the size of the icon image in pixels.Bounds.getMax()The bottom right corner of the rectangle.Bounds.getMin()The top left corner of the rectangle.Icon.getPopupAnchor()Gets the coordinates from which popups will "open", relative to the icon anchor.Icon.getShadowAnchor()Gets the coordinates of the "tip" of the shadow relative to its top-left corner.Icon.getShadowSize()Gets the size of the shadow image in pixels.Icon.getTooltipAnchor()Gets the coordinates from which tooltips will "open", relative to the icon anchor.Bounds.getTopLeft()Returns the top-left point of the boundsBounds.getTopRight()Returns the bottom-left point of the bounds.static PointPoint.of(double x, double y) Creates a new point with the given coordinates.Methods in org.vaadin.addons.componentfactory.leaflet.types with parameters of type PointModifier and TypeMethodDescriptionbooleanReturns `true` if both coordinates of the given point are less than the corresponding current point coordinates (in absolute values).doublePoint.distanceTo(Point target) Returns the cartesian distance between the current and the given points.voidExtends the bounds to contain the given points.voidSets the Optional relative position of the background, in pixelsvoidIcon.setIconAnchor(Point iconAnchor) Sets the coordinates of the "tip" of the icon (relative to its top-left corner), which will be aligned to the marker's geographical location.voidIcon.setIconSize(Point iconSize) Sets the size of the icon image in pixels.voidSets the bottom right corner of the rectangle.voidSets the top left corner of the rectangle.voidIcon.setPopupAnchor(Point popupAnchor) Sets the coordinates from which popups will "open", relative to the icon anchor.voidIcon.setShadowAnchor(Point shadowAnchor) Sets the coordinates of the "tip" of the shadow (relative to its top-left corner); defaults to the icon anchor if not specified.voidIcon.setShadowSize(Point shadowSize) Sets the size of the shadow image in pixels.voidIcon.setTooltipAnchor(Point tooltipAnchor) Sets the coordinates from which tooltips will "open", relative to the icon anchor.Constructors in org.vaadin.addons.componentfactory.leaflet.types with parameters of type Point