Package mil.nga.grid

Class BaseZoomGrids<T extends BaseGrid>

  • Type Parameters:
    T - grid type
    All Implemented Interfaces:
    Iterable<T>

    public class BaseZoomGrids<T extends BaseGrid>
    extends Object
    implements Iterable<T>
    Zoom Level Matching Grids
    Author:
    osbornb
    • Constructor Detail

      • BaseZoomGrids

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

      • getZoom

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

        public TreeSet<T> 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​(T grid)
        Add a grid
        Parameters:
        grid - grid
        Returns:
        true if added
      • removeGrid

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