Class GARSLabeler


  • public class GARSLabeler
    extends GridLabeler
    GARS grid labeler
    Author:
    osbornb
    • Constructor Detail

      • GARSLabeler

        public GARSLabeler()
        Default Constructor
      • GARSLabeler

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

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

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

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

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

        public GARSLabeler​(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 edge buffer (greater than or equal to 0.0 and less than 0.5)
      • GARSLabeler

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

        public GARSLabeler​(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
      • GARSLabeler

        public GARSLabeler​(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 edge buffer (greater than or equal to 0.0 and less than 0.5)
    • Method Detail

      • getLabels

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