Package mil.nga.mgrs.grid
Class ZoomGrids
- java.lang.Object
-
- mil.nga.mgrs.grid.ZoomGrids
-
-
Constructor Summary
Constructors Constructor Description ZoomGrids(int zoom)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaddGrid(Grid grid)Add a gridTreeSet<Grid>getGrids()Get the grids within the zoom levelGridTypegetPrecision()Get the grid type precisionintgetZoom()Get the zoom levelbooleanhasGrids()Determine if the zoom level has gridsIterator<Grid>iterator()intnumGrids()Get the number of gridsbooleanremoveGrid(Grid 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(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
-
-