Class Grid

    • Field Detail

      • DEFAULT_WIDTH

        public static final double DEFAULT_WIDTH
        Default line width
    • Constructor Detail

      • Grid

        public Grid​(GridType type)
        Constructor
        Parameters:
        type - grid type
    • Method Detail

      • getType

        public GridType getType()
        Get the grid type
        Returns:
        grid type
      • isType

        public boolean isType​(GridType type)
        Is the provided grid type
        Parameters:
        type - grid type
        Returns:
        true if the type
      • getPrecision

        public double getPrecision()
        Get the precision in degrees
        Returns:
        precision degrees
      • getStyle

        public GridStyle getStyle​(GridType gridType)
        Get the grid type precision line style for the grid type
        Parameters:
        gridType - grid type
        Returns:
        grid type line style
      • setStyle

        public void setStyle​(GridType gridType,
                             GridStyle style)
        Set the grid type precision line style
        Parameters:
        gridType - grid type
        style - grid line style
      • clearPrecisionStyles

        public void clearPrecisionStyles()
        Clear the propagated grid type precision styles
      • getColor

        public Color getColor​(GridType gridType)
        Get the grid type precision line color
        Parameters:
        gridType - grid type
        Returns:
        grid type line color
      • setColor

        public void setColor​(GridType gridType,
                             Color color)
        Set the grid type precision line color
        Parameters:
        gridType - grid type
        color - grid line color
      • getWidth

        public double getWidth​(GridType gridType)
        Get the grid type precision line width
        Parameters:
        gridType - grid type
        Returns:
        grid type line width
      • setWidth

        public void setWidth​(GridType gridType,
                             double width)
        Set the grid type precision line width
        Parameters:
        gridType - grid type
        width - grid line width
      • setLabeler

        public void setLabeler​(GridLabeler labeler)
        Set the grid labeler
        Parameters:
        labeler - grid labeler
      • getLines

        public List<GridLine> getLines​(GridTile tile)
        Get the lines for the tile
        Parameters:
        tile - tile
        Returns:
        lines
      • getLines

        public List<GridLine> getLines​(int zoom,
                                       Bounds tileBounds)
        Get the lines for the zoom and tile bounds
        Parameters:
        zoom - zoom level
        tileBounds - tile bounds
        Returns:
        lines
      • getLines

        public List<GridLine> getLines​(Bounds tileBounds)
        Get the lines for the tile bounds
        Parameters:
        tileBounds - tile bounds
        Returns:
        lines
      • getLabels

        public List<GridLabel> getLabels​(GridTile tile)
        Get the labels for the tile
        Parameters:
        tile - tile
        Returns:
        labels
      • getLabels

        public List<GridLabel> getLabels​(int zoom,
                                         Bounds tileBounds)
        Get the labels for the zoom and tile bounds
        Parameters:
        zoom - zoom level
        tileBounds - tile bounds
        Returns:
        labels
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object