com.jhlabs.image

Class CheckFilter

Implemented Interfaces:
BufferedImageOp, Cloneable

public class CheckFilter
extends PointFilter

A Filter to draw grids and check patterns.

Field Summary

Fields inherited from class com.jhlabs.image.PointFilter

canFilterIndexColorModel

Constructor Summary

CheckFilter()

Method Summary

int
filterRGB(int x, int y, int rgb)
float
getAngle()
Get the angle of the texture.
int
getBackground()
Get the background color.
int
getForeground()
Get the foreground color.
int
getFuzziness()
Get the fuzziness of the texture.
int
getXScale()
Get the X scale of the texture.
int
getYScale()
Get the Y scale of the texture.
void
setAngle(float angle)
Set the angle of the texture.
void
setBackground(int background)
Set the background color.
void
setForeground(int foreground)
Set the foreground color.
void
setFuzziness(int fuzziness)
Set the fuzziness of the texture.
void
setXScale(int xScale)
Set the X scale of the texture.
void
setYScale(int yScale)
Set the Y scale of the texture.
String
toString()

Methods inherited from class com.jhlabs.image.PointFilter

filter, filterRGB, setDimensions

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRGB, getRenderingHints, setRGB

Constructor Details

CheckFilter

public CheckFilter()

Method Details

filterRGB

public int filterRGB(int x,
                     int y,
                     int rgb)
Overrides:
filterRGB in interface PointFilter

getAngle

public float getAngle()
Get the angle of the texture.
Returns:
the angle of the texture.

getBackground

public int getBackground()
Get the background color.
Returns:
the color.

getForeground

public int getForeground()
Get the foreground color.
Returns:
the color.

getFuzziness

public int getFuzziness()
Get the fuzziness of the texture.
Returns:
the fuzziness.

getXScale

public int getXScale()
Get the X scale of the texture.
Returns:
the scale.

getYScale

public int getYScale()
Get the Y scale of the texture.
Returns:
the scale.

setAngle

public void setAngle(float angle)
Set the angle of the texture.
Parameters:
angle - the angle of the texture.

setBackground

public void setBackground(int background)
Set the background color.
Parameters:
background - the color.

setForeground

public void setForeground(int foreground)
Set the foreground color.
Parameters:
foreground - the color.

setFuzziness

public void setFuzziness(int fuzziness)
Set the fuzziness of the texture.
Parameters:
fuzziness - the fuzziness.

setXScale

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

setYScale

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

toString

public String toString()