Class GridLabeler

    • Field Detail

      • DEFAULT_TEXT_SIZE

        public static final double DEFAULT_TEXT_SIZE
        Default text size
      • DEFAULT_BUFFER

        public static final double DEFAULT_BUFFER
        Default buffer size
    • 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 abstract List<GridLabel> getLabels​(Bounds tileBounds,
                                                  GridType gridType,
                                                  GridZone zone)
        Get labels for the bounds
        Parameters:
        tileBounds - tile bounds
        gridType - grid type
        zone - grid zone
        Returns:
        labels