Class LatLonGraticuleLayer
- java.lang.Object
-
- gov.nasa.worldwind.layer.AbstractLayer
-
- gov.nasa.worldwind.layer.graticule.AbstractGraticuleLayer
-
- gov.nasa.worldwind.layer.graticule.LatLonGraticuleLayer
-
- All Implemented Interfaces:
Layer
public class LatLonGraticuleLayer extends AbstractGraticuleLayer
Displays the geographic latitude/longitude graticule.
-
-
Constructor Summary
Constructors Constructor Description LatLonGraticuleLayer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description gov.nasa.worldwind.layer.graticule.AbstractGraticuleTilecreateGridTile(Sector sector)gov.nasa.worldwind.layer.graticule.AbstractLatLonGraticuleLayer.AngleFormatgetAngleFormat()Get the graticule division and angular display format.intgetGridColumn(double longitude)intgetGridRow(double latitude)SectorgetGridSector(int row, int col)gov.nasa.worldwind.layer.graticule.AbstractGraticuleTile[][]initGridTiles(int rows, int cols)voidsetAngleFormat(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.DDorAbstractLatLonGraticuleLayer.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.DMSofAbstractLatLonGraticuleLayer.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)
-
-