Class BoundingXYVisitor

    • Method Detail

      • visit

        public void visit​(Bounds b)
        Visiting call for bounds.
        Parameters:
        b - bounds
      • visit

        public void visit​(ProjectionBounds b)
        Visiting call for projection bounds.
        Parameters:
        b - projection bounds
      • visit

        public void visit​(ILatLon latlon)
        Visiting call for lat/lon.
        Parameters:
        latlon - lat/lon
        Since:
        12725 (public for ILatLon parameter)
      • visit

        public void visit​(LatLon latlon)
        Visiting call for lat/lon.
        Parameters:
        latlon - lat/lon
      • visit

        public void visit​(EastNorth eastNorth)
        Visiting call for east/north.
        Parameters:
        eastNorth - east/north
      • hasExtend

        public boolean hasExtend()
        Determines if the visitor has a non null bounds area.
        Returns:
        true if the visitor has a non null bounds area
        See Also:
        ProjectionBounds.hasExtend()
      • getBounds

        public ProjectionBounds getBounds()
        Returns the bounding box.
        Returns:
        The bounding box or null if no coordinates have passed
      • enlargeBoundingBox

        public void enlargeBoundingBox()
        Enlarges the calculated bounding box by 0.0002 degrees or user value given in edit.zoom-enlarge-bbox. If the bounding box has not been set (min or max equal null) this method does not do anything.
      • enlargeBoundingBox

        public void enlargeBoundingBox​(double enlargeDegreeX,
                                       double enlargeDegreeY)
        Enlarges the calculated bounding box by the specified number of degrees. If the bounding box has not been set (min or max equal null) this method does not do anything.
        Parameters:
        enlargeDegreeX - number of degrees to enlarge on each side along X
        enlargeDegreeY - number of degrees to enlarge on each side along Y
      • enlargeBoundingBoxLogarithmically

        public void enlargeBoundingBoxLogarithmically()
        Enlarges the bounding box up to 0.0002 degrees, depending on its size and user settings in edit.zoom-enlarge-bbox. If the bounding box is small, it will be enlarged more in relation to its beginning size. The larger the bounding box, the smaller the change, down to 0.0 degrees. If the bounding box has not been set (min or max equal null) this method does not do anything.
        Since:
        14628
      • computeBoundingBox

        public void computeBoundingBox​(Collection<? extends IPrimitive> primitives)
        Compute the bounding box of a collection of primitives.
        Parameters:
        primitives - the collection of primitives