Class Grids


public class Grids extends Grids
Grids with Android specific styling
  • Constructor Details

    • Grids

      public Grids()
      Constructor, all grid types enabled
    • Grids

      public Grids(GridType... types)
      Constructor
      Parameters:
      types - grid types to enable
    • Grids

      public Grids(Collection<GridType> types)
      Constructor
      Parameters:
      types - grid types to enable
  • Method Details

    • create

      public static Grids create()
      Create with all grid types enabled
      Returns:
      grids
    • create

      public static Grids create(GridType... types)
      Create with grids to enable
      Parameters:
      types - grid types to enable
      Returns:
      grids
    • create

      public static Grids create(Collection<GridType> types)
      Create with grids to enable
      Parameters:
      types - grid types to enable
      Returns:
      grids
    • newGrid

      protected Grid newGrid(GridType type)
      Overrides:
      newGrid in class Grids
    • newZoomGrids

      protected ZoomGrids newZoomGrids(int zoom)
      Overrides:
      newZoomGrids in class Grids
    • getGrid

      public Grid getGrid(GridType type)
      Overrides:
      getGrid in class Grids
    • getGrids

      public ZoomGrids getGrids(int zoom)
      Overrides:
      getGrids in class BaseGrids<Grid,ZoomGrids>
    • drawTile

      public Bitmap drawTile(int tileWidth, int tileHeight, int x, int y, int zoom)
      Draw a tile with the dimensions and XYZ coordinate
      Parameters:
      tileWidth - tile width
      tileHeight - tile height
      x - x coordinate
      y - y coordinate
      zoom - zoom level
      Returns:
      bitmap tile
    • drawTile

      public Bitmap drawTile(int tileWidth, int tileHeight, Bounds bounds)
      Draw a tile with the dimensions and bounds
      Parameters:
      tileWidth - tile width
      tileHeight - tile height
      bounds - bounds
      Returns:
      bitmap tile
    • drawTile

      public Bitmap drawTile(GridTile gridTile)
      Draw the tile
      Parameters:
      gridTile - tile
      Returns:
      bitmap tile
    • getLinePaint

      public Paint getLinePaint(GridType type)
      Get the grid line paint for the grid type
      Parameters:
      type - grid type
      Returns:
      grid line paint
    • setLinePaint

      public void setLinePaint(GridType type, Paint linePaint)
      Set the grid line paint for the grid type
      Parameters:
      type - grid type
      linePaint - grid line paint
    • getLinePaint

      public Paint getLinePaint(GridType type, GridType precisionType)
      Get the grid type precision line paint for the grid type
      Parameters:
      type - grid type
      precisionType - precision grid type
      Returns:
      grid line paint
    • setLinePaint

      public void setLinePaint(GridType type, GridType precisionType, Paint linePaint)
      Set the grid type precision line paint for the grid type
      Parameters:
      type - grid type
      precisionType - precision grid type
      linePaint - grid line paint
    • getLabelPaint

      public Paint getLabelPaint(GridType type)
      Get the grid label paint for the grid type
      Parameters:
      type - grid type
      Returns:
      grid label paint
    • setLabelPaint

      public void setLabelPaint(GridType type, Paint labelPaint)
      Set the grid label paint for the grid type
      Parameters:
      type - grid type
      labelPaint - grid label paint
    • setLabelColor

      public void setLabelColor(GridType type, Color color)
      Overrides:
      setLabelColor in class Grids
    • setLabelTextSize

      public void setLabelTextSize(GridType type, double textSize)
      Overrides:
      setLabelTextSize in class Grids