Class LatLonGraticuleLayer

  • All Implemented Interfaces:
    Layer

    public class LatLonGraticuleLayer
    extends AbstractGraticuleLayer
    Displays the geographic latitude/longitude graticule.
    • Constructor Detail

      • LatLonGraticuleLayer

        public LatLonGraticuleLayer()
    • 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 of AbstractLatLonGraticuleLayer.AngleFormat.DD or AbstractLatLonGraticuleLayer.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 of AbstractLatLonGraticuleLayer.AngleFormat.DD, AbstractLatLonGraticuleLayer.AngleFormat.DMS of AbstractLatLonGraticuleLayer.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)