Class GridLabeler


  • public class GridLabeler
    extends Labeler
    MGRS grid labeler
    Author:
    osbornb
    • Constructor Detail

      • GridLabeler

        public GridLabeler()
        Default Constructor
      • GridLabeler

        public GridLabeler​(int minZoom,
                           Color color)
        Constructor
        Parameters:
        minZoom - minimum zoom
        color - label color
      • GridLabeler

        public GridLabeler​(int minZoom,
                           Color color,
                           double textSize)
        Constructor
        Parameters:
        minZoom - minimum zoom
        color - label color
        textSize - label text size
      • GridLabeler

        public GridLabeler​(int minZoom,
                           Color color,
                           double textSize,
                           double buffer)
        Constructor
        Parameters:
        minZoom - minimum zoom
        color - label color
        textSize - label text size
        buffer - grid zone edge buffer (greater than or equal to 0.0 and less than 0.5)
      • GridLabeler

        public GridLabeler​(int minZoom,
                           Integer maxZoom,
                           Color color)
        Constructor
        Parameters:
        minZoom - minimum zoom
        maxZoom - maximum zoom
        color - label color
      • GridLabeler

        public GridLabeler​(int minZoom,
                           Integer maxZoom,
                           Color color,
                           double textSize)
        Constructor
        Parameters:
        minZoom - minimum zoom
        maxZoom - maximum zoom
        color - label color
        textSize - label text size
      • GridLabeler

        public GridLabeler​(int minZoom,
                           Integer maxZoom,
                           Color color,
                           double textSize,
                           double buffer)
        Constructor
        Parameters:
        minZoom - minimum zoom
        maxZoom - maximum zoom
        color - label color
        textSize - label text size
        buffer - grid zone edge buffer (greater than or equal to 0.0 and less than 0.5)
      • GridLabeler

        public GridLabeler​(boolean enabled,
                           int minZoom,
                           Integer maxZoom,
                           Color color)
        Constructor
        Parameters:
        enabled - enabled labeler
        minZoom - minimum zoom
        maxZoom - maximum zoom
        color - label color
      • GridLabeler

        public GridLabeler​(boolean enabled,
                           int minZoom,
                           Integer maxZoom,
                           Color color,
                           double textSize)
        Constructor
        Parameters:
        enabled - enabled labeler
        minZoom - minimum zoom
        maxZoom - maximum zoom
        color - label color
        textSize - label text size
      • GridLabeler

        public GridLabeler​(boolean enabled,
                           int minZoom,
                           Integer maxZoom,
                           Color color,
                           double textSize,
                           double buffer)
        Constructor
        Parameters:
        enabled - enabled labeler
        minZoom - minimum zoom
        maxZoom - maximum zoom
        color - label color
        textSize - label text size
        buffer - grid zone edge buffer (greater than or equal to 0.0 and less than 0.5)
    • Method Detail

      • getLabels

        public List<Label> getLabels​(Bounds tileBounds,
                                     GridType gridType,
                                     GridZone zone)
        Get labels for the bounds
        Specified by:
        getLabels in class Labeler
        Parameters:
        tileBounds - tile bounds
        gridType - grid type
        zone - grid zone
        Returns:
        labels