Class ZoomGrids

  • All Implemented Interfaces:
    Iterable<Grid>

    public class ZoomGrids
    extends Object
    implements Iterable<Grid>
    Zoom Level Matching Grids
    Author:
    osbornb
    • Constructor Detail

      • ZoomGrids

        public ZoomGrids​(int zoom)
        Constructor
        Parameters:
        zoom - zoom level
    • Method Detail

      • getZoom

        public int getZoom()
        Get the zoom level
        Returns:
        zoom level
      • getGrids

        public TreeSet<Grid> getGrids()
        Get the grids within the zoom level
        Returns:
        grids
      • numGrids

        public int numGrids()
        Get the number of grids
        Returns:
        number of grids
      • hasGrids

        public boolean hasGrids()
        Determine if the zoom level has grids
        Returns:
        true if has grids
      • addGrid

        public boolean addGrid​(Grid grid)
        Add a grid
        Parameters:
        grid - grid
        Returns:
        true if added
      • removeGrid

        public boolean removeGrid​(Grid grid)
        Remove the grid
        Parameters:
        grid - grid
        Returns:
        true if removed
      • getPrecision

        public GridType getPrecision()
        Get the grid type precision
        Returns:
        grid type precision