Class UTMBaseGraticuleLayer

    • Constructor Detail

      • UTMBaseGraticuleLayer

        public UTMBaseGraticuleLayer()
    • Method Detail

      • isDrawGraticule

        public boolean isDrawGraticule()
        Returns whether or not graticule lines will be rendered.
        Returns:
        true if graticule lines will be rendered; false otherwise.
      • setDrawGraticule

        public void setDrawGraticule​(boolean drawGraticule)
        Sets whether or not graticule lines will be rendered.
        Parameters:
        drawGraticule - true to render graticule lines; false to disable rendering.
      • getGraticuleLineColor

        public java.awt.Color getGraticuleLineColor()
        Returns the graticule line Color.
        Returns:
        Color used to render graticule lines.
      • setGraticuleLineColor

        public void setGraticuleLineColor​(java.awt.Color color)
        Sets the graticule line Color.
        Parameters:
        color - Color that will be used to render graticule lines.
        Throws:
        java.lang.IllegalArgumentException - if color is null.
      • getGraticuleLineWidth

        public double getGraticuleLineWidth()
        Returns the graticule line width.
        Returns:
        width of the graticule lines.
      • setGraticuleLineWidth

        public void setGraticuleLineWidth​(double lineWidth)
        Sets the graticule line width.
        Parameters:
        lineWidth - width of the graticule lines.
      • getGraticuleLineStyle

        public java.lang.String getGraticuleLineStyle()
        Returns the graticule line rendering style.
        Returns:
        rendering style of the graticule lines.
      • setGraticuleLineStyle

        public void setGraticuleLineStyle​(java.lang.String lineStyle)
        Sets the graticule line rendering style.
        Parameters:
        lineStyle - rendering style of the graticule lines. One of LINE_STYLE_PLAIN, LINE_STYLE_DASHED, or LINE_STYLE_DOTTED.
        Throws:
        java.lang.IllegalArgumentException - if lineStyle is null.
      • isDrawLabels

        public boolean isDrawLabels()
        Returns whether or not graticule labels will be rendered.
        Returns:
        true if graticule labels will be rendered; false otherwise.
      • setDrawLabels

        public void setDrawLabels​(boolean drawLabels)
        Sets whether or not graticule labels will be rendered.
        Parameters:
        drawLabels - true to render graticule labels; false to disable rendering.
      • getLabelColor

        public java.awt.Color getLabelColor()
        Returns the graticule label Color.
        Returns:
        Color used to render graticule labels.
      • setLabelColor

        public void setLabelColor​(java.awt.Color color)
        Sets the graticule label Color.
        Parameters:
        color - Color that will be used to render graticule labels.
        Throws:
        java.lang.IllegalArgumentException - if color is null.
      • getLabelFont

        public java.awt.Font getLabelFont()
        Returns the Font used for graticule labels.
        Returns:
        Font used to render graticule labels.
      • setLabelFont

        public void setLabelFont​(java.awt.Font font)
        Sets the Font used for graticule labels.
        Parameters:
        font - Font that will be used to render graticule labels.
        Throws:
        java.lang.IllegalArgumentException - if font is null.
      • getTypeFor

        protected java.lang.String getTypeFor​(int resolution)
      • initRenderingParams

        protected void initRenderingParams()
      • computePosition

        protected Position computePosition​(int zone,
                                           java.lang.String hemisphere,
                                           double easting,
                                           double northing)
      • computePositionFromUTM

        protected Position computePositionFromUTM​(int zone,
                                                  java.lang.String hemisphere,
                                                  double easting,
                                                  double northing)
      • computePositionFromUPS

        protected Position computePositionFromUPS​(java.lang.String hemisphere,
                                                  double easting,
                                                  double northing)
      • createSquaresGrid

        protected java.util.ArrayList<UTMBaseGraticuleLayer.SquareZone> createSquaresGrid​(int UTMZone,
                                                                                          java.lang.String hemisphere,
                                                                                          Sector UTMZoneSector,
                                                                                          double minEasting,
                                                                                          double maxEasting,
                                                                                          double minNorthing,
                                                                                          double maxNorthing)