Class GARSGraticuleLayer

  • All Implemented Interfaces:
    AVList, Disposable, MessageListener, Layer, Restorable, WWObject, java.beans.PropertyChangeListener, java.util.EventListener

    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.
    • Field Detail

      • GRATICULE_GARS_LEVEL_0

        public static final java.lang.String GRATICULE_GARS_LEVEL_0
        See Also:
        Constant Field Values
      • GRATICULE_GARS_LEVEL_1

        public static final java.lang.String GRATICULE_GARS_LEVEL_1
        See Also:
        Constant Field Values
      • GRATICULE_GARS_LEVEL_2

        public static final java.lang.String GRATICULE_GARS_LEVEL_2
        See Also:
        Constant Field Values
      • GRATICULE_GARS_LEVEL_3

        public static final java.lang.String GRATICULE_GARS_LEVEL_3
        See Also:
        Constant Field Values
      • latitudeLabels

        protected java.util.ArrayList<java.lang.Double> latitudeLabels
      • longitudeLabels

        protected java.util.ArrayList<java.lang.Double> longitudeLabels
      • angleFormat

        protected java.lang.String angleFormat
      • thresholds

        protected double[] thresholds
        Indicates the eye altitudes in meters below which each level should be displayed.
      • latLabels

        protected static java.util.ArrayList<java.lang.String> latLabels
      • lonLabels

        protected static java.util.ArrayList<java.lang.String> lonLabels
      • chars

        protected static java.lang.String chars
      • level2Labels

        protected static java.lang.String[][] level2Labels
    • Constructor Detail

      • GARSGraticuleLayer

        public GARSGraticuleLayer()
    • Method Detail

      • getAngleFormat

        public java.lang.String getAngleFormat()
        Get the graticule division and angular display format. Can be one of Angle.ANGLE_FORMAT_DD or Angle.ANGLE_FORMAT_DMS.
        Returns:
        the graticule division and angular display format.
      • setAngleFormat

        public void setAngleFormat​(java.lang.String format)
        Sets the graticule division and angular display format. Can be one of Angle.ANGLE_FORMAT_DD, Angle.ANGLE_FORMAT_DMS of Angle.ANGLE_FORMAT_DM.
        Parameters:
        format - the graticule division and angular display format.
        Throws:
        java.lang.IllegalArgumentException - is format is null.
      • set30MinuteThreshold

        public void set30MinuteThreshold​(double altitude)
        Specifies the eye altitude below which the 30 minute grid is displayed.
        Parameters:
        altitude - the eye altitude in meters below which the 30 minute grid is displayed.
      • get30MinuteThreshold

        public double get30MinuteThreshold()
        Indicates the eye altitude below which the 30 minute grid is displayed.
        Returns:
        the eye altitude in meters below which the 30 minute grid is displayed.
      • set15MinuteThreshold

        public void set15MinuteThreshold​(double altitude)
        Specifies the eye altitude below which the 15 minute grid is displayed.
        Parameters:
        altitude - the eye altitude in meters below which the 15 minute grid is displayed.
      • get15MinuteThreshold

        public double get15MinuteThreshold()
        Indicates the eye altitude below which the 15 minute grid is displayed.
        Returns:
        the eye altitude in meters below which the 15 minute grid is displayed.
      • set5MinuteThreshold

        public void set5MinuteThreshold​(double altitude)
        Specifies the eye altitude below which the 5 minute grid is displayed.
        Parameters:
        altitude - the eye altitude in meters below which the 5 minute grid is displayed.
      • get5MinuteThreshold

        public double get5MinuteThreshold()
        Indicates the eye altitude below which the 5 minute grid is displayed.
        Returns:
        the eye altitude in meters below which the 5 minute grid is displayed.
      • initRenderingParams

        protected void initRenderingParams()
      • getOrderedTypes

        protected java.lang.String[] getOrderedTypes()
      • getTypeFor

        protected java.lang.String getTypeFor​(double resolution)
      • clearTiles

        protected void clearTiles()
      • makeAngleLabel

        protected java.lang.String makeAngleLabel​(Angle angle,
                                                  double resolution)
      • addLevel0Label

        protected void addLevel0Label​(double value,
                                      java.lang.String labelType,
                                      java.lang.String graticuleType,
                                      double resolution,
                                      LatLon labelOffset)
      • makeLabel

        protected java.lang.String makeLabel​(Sector sector,
                                             java.lang.String graticuleType)