Package mil.nga.grid
Class BaseZoomGrids<T extends BaseGrid>
- java.lang.Object
-
- mil.nga.grid.BaseZoomGrids<T>
-
-
Constructor Summary
Constructors Constructor Description BaseZoomGrids(int zoom)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddGrid(T grid)Add a gridTreeSet<T>getGrids()Get the grids within the zoom levelintgetZoom()Get the zoom levelbooleanhasGrids()Determine if the zoom level has gridsIterator<T>iterator()intnumGrids()Get the number of gridsbooleanremoveGrid(T grid)Remove the grid-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getZoom
public int getZoom()
Get the zoom level- Returns:
- zoom level
-
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
-
-