Class Grid

All Implemented Interfaces:
Comparable<Grid>

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

    • Grid

      protected Grid(GridType type)
      Constructor
      Parameters:
      type - grid type
  • Method Details

    • getLinePaint

      public Paint getLinePaint()
      Get the grid line paint, create if needed
      Returns:
      grid line paint
    • getLinePaint

      public Paint getLinePaint(GridType gridType)
      Get the grid line paint for the grid type, create if needed
      Parameters:
      gridType - grid type
      Returns:
      grid line paint
    • createLinePaint

      public Paint createLinePaint()
      Create the grid line paint
      Returns:
      grid line paint
    • createLinePaint

      public Paint createLinePaint(GridType gridType)
      Create the grid line paint
      Parameters:
      gridType - grid type
      Returns:
      grid line paint
    • setWidth

      public void setWidth(double width)
      Overrides:
      setWidth in class BaseGrid
    • setColor

      public void setColor(Color color)
      Overrides:
      setColor in class BaseGrid
    • setColor

      public void setColor(GridType gridType, Color color)
      Overrides:
      setColor in class Grid
    • setWidth

      public void setWidth(GridType gridType, double width)
      Overrides:
      setWidth in class Grid
    • resetLinePaint

      public void resetLinePaint()
      Reset the grid line paint
    • resetLinePaint

      public void resetLinePaint(GridType gridType)
      Reset the grid type line paint
      Parameters:
      gridType - grid type
    • setLinePaint

      public void setLinePaint(Paint paint)
      Set the grid line paint
      Parameters:
      paint - grid line paint
    • setLinePaint

      public void setLinePaint(GridType gridType, Paint paint)
      Set the grid line paint
      Parameters:
      gridType - grid type
      paint - grid line paint
    • getLabelPaint

      public Paint getLabelPaint()
      Get the grid label paint, create if needed
      Returns:
      grid label paint, null if no labeler
    • createLabelPaint

      public Paint createLabelPaint()
      Create the grid label paint
      Returns:
      grid label paint, null if no labeler
    • resetLabelPaint

      public void resetLabelPaint()
      Reset the grid label paint
    • setLabelPaint

      public void setLabelPaint(Paint labelPaint)
      Set the grid label paint
      Parameters:
      labelPaint - grid label paint
    • resetPaint

      public void resetPaint()
      Reset the grid line and label paint