Class CheckFilter

All Implemented Interfaces:
BufferedImageOp, Cloneable

public class CheckFilter extends PointFilter
A Filter to draw grids and check patterns.
  • Constructor Details

    • CheckFilter

      public CheckFilter()
  • Method Details

    • setForeground

      public void setForeground(int foreground)
      Set the foreground color.
      Parameters:
      foreground - the color.
      See Also:
    • getForeground

      public int getForeground()
      Get the foreground color.
      Returns:
      the color.
      See Also:
    • setBackground

      public void setBackground(int background)
      Set the background color.
      Parameters:
      background - the color.
      See Also:
    • getBackground

      public int getBackground()
      Get the background color.
      Returns:
      the color.
      See Also:
    • setXScale

      public void setXScale(int xScale)
      Set the X scale of the texture.
      Parameters:
      xScale - the scale.
      See Also:
    • getXScale

      public int getXScale()
      Get the X scale of the texture.
      Returns:
      the scale.
      See Also:
    • setYScale

      public void setYScale(int yScale)
      Set the Y scale of the texture.
      Parameters:
      yScale - the scale.
      See Also:
    • getYScale

      public int getYScale()
      Get the Y scale of the texture.
      Returns:
      the scale.
      See Also:
    • setFuzziness

      public void setFuzziness(int fuzziness)
      Set the fuzziness of the texture.
      Parameters:
      fuzziness - the fuzziness.
      See Also:
    • getFuzziness

      public int getFuzziness()
      Get the fuzziness of the texture.
      Returns:
      the fuzziness.
      See Also:
    • setAngle

      public void setAngle(float angle)
      Set the angle of the texture.
      Parameters:
      angle - the angle of the texture.
      See Also:
    • getAngle

      public float getAngle()
      Get the angle of the texture.
      Returns:
      the angle of the texture.
      See Also:
    • filterRGB

      public int filterRGB(int x, int y, int rgb)
      Specified by:
      filterRGB in class PointFilter
    • toString

      public String toString()
      Overrides:
      toString in class Object