Class GARSGraticuleLayer
- java.lang.Object
-
- gov.nasa.worldwind.layer.AbstractLayer
-
- gov.nasa.worldwind.layer.graticule.AbstractGraticuleLayer
-
- gov.nasa.worldwind.layer.graticule.GARSGraticuleLayer
-
- All Implemented Interfaces:
Layer
public class GARSGraticuleLayer extends AbstractGraticuleLayer
Displays the geographic Global Area Reference System (GARS) graticule. The graticule has four levels. The first level displays lines of latitude and longitude. The second level displays 30 minute square grid cells. The third level displays 15 minute grid cells. The fourth and final level displays 5 minute grid cells. This graticule is intended to be used on 2D globes because it is so dense.
-
-
Constructor Summary
Constructors Constructor Description GARSGraticuleLayer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description gov.nasa.worldwind.layer.graticule.AbstractGraticuleTile
createGridTile(Sector sector)
gov.nasa.worldwind.layer.graticule.AbstractLatLonGraticuleLayer.AngleFormat
getAngleFormat()
Get the graticule division and angular display format.int
getGridColumn(double longitude)
int
getGridRow(double latitude)
Sector
getGridSector(int row, int col)
gov.nasa.worldwind.layer.graticule.AbstractGraticuleTile[][]
initGridTiles(int rows, int cols)
void
setAngleFormat(gov.nasa.worldwind.layer.graticule.AbstractLatLonGraticuleLayer.AngleFormat format)
Sets the graticule division and angular display format.-
Methods inherited from class gov.nasa.worldwind.layer.graticule.AbstractGraticuleLayer
doRender, getGraticuleLineColor, getGraticuleLineWidth, getLabelColor, getLabelSize, getLabelTypeface, isDrawGraticule, isDrawLabels, setDrawGraticule, setDrawLabels, setGraticuleLineColor, setGraticuleLineWidth, setLabelColor, setLabelSize, setLabelTypeface
-
Methods inherited from class gov.nasa.worldwind.layer.AbstractLayer
getDisplayName, getMaxActiveAltitude, getMinActiveAltitude, getOpacity, getUserProperty, hasUserProperty, isEnabled, isPickEnabled, isWithinActiveAltitudes, putUserProperty, removeUserProperty, render, setDisplayName, setEnabled, setMaxActiveAltitude, setMinActiveAltitude, setOpacity, setPickEnabled
-
-
-
-
Method Detail
-
initGridTiles
public gov.nasa.worldwind.layer.graticule.AbstractGraticuleTile[][] initGridTiles(int rows, int cols)
-
createGridTile
public gov.nasa.worldwind.layer.graticule.AbstractGraticuleTile createGridTile(Sector sector)
-
getAngleFormat
public gov.nasa.worldwind.layer.graticule.AbstractLatLonGraticuleLayer.AngleFormat getAngleFormat()
Get the graticule division and angular display format. Can be one ofAbstractLatLonGraticuleLayer.AngleFormat.DD
orAbstractLatLonGraticuleLayer.AngleFormat.DMS
.- Returns:
- the graticule division and angular display format.
-
setAngleFormat
public void setAngleFormat(gov.nasa.worldwind.layer.graticule.AbstractLatLonGraticuleLayer.AngleFormat format)
Sets the graticule division and angular display format. Can be one ofAbstractLatLonGraticuleLayer.AngleFormat.DD
,AbstractLatLonGraticuleLayer.AngleFormat.DMS
ofAbstractLatLonGraticuleLayer.AngleFormat.DM
.- Parameters:
format
- the graticule division and angular display format.
-
getGridSector
public Sector getGridSector(int row, int col)
-
getGridColumn
public int getGridColumn(double longitude)
-
getGridRow
public int getGridRow(double latitude)
-
-