Class 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 Detail

      • GARSGraticuleLayer

        public GARSGraticuleLayer()
    • 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)