Package com.jhlabs.image
Class CheckFilter
- java.lang.Object
-
- com.jhlabs.image.AbstractBufferedImageOp
-
- com.jhlabs.image.PointFilter
-
- com.jhlabs.image.CheckFilter
-
- All Implemented Interfaces:
java.awt.image.BufferedImageOp,java.lang.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
Constructors Constructor Description CheckFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intfilterRGB(int x, int y, int rgb)floatgetAngle()Get the angle of the texture.intgetBackground()Get the background color.intgetForeground()Get the foreground color.intgetFuzziness()Get the fuzziness of the texture.intgetXScale()Get the X scale of the texture.intgetYScale()Get the Y scale of the texture.voidsetAngle(float angle)Set the angle of the texture.voidsetBackground(int background)Set the background color.voidsetForeground(int foreground)Set the foreground color.voidsetFuzziness(int fuzziness)Set the fuzziness of the texture.voidsetXScale(int xScale)Set the X scale of the texture.voidsetYScale(int yScale)Set the Y scale of the texture.java.lang.StringtoString()-
Methods inherited from class com.jhlabs.image.PointFilter
filter, setDimensions
-
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB, stringToColor
-
-
-
-
Method Detail
-
setForeground
public void setForeground(int foreground)
Set the foreground color.- Parameters:
foreground- the color.- See Also:
getForeground()
-
getForeground
public int getForeground()
Get the foreground color.- Returns:
- the color.
- See Also:
setForeground(int)
-
setBackground
public void setBackground(int background)
Set the background color.- Parameters:
background- the color.- See Also:
getBackground()
-
getBackground
public int getBackground()
Get the background color.- Returns:
- the color.
- See Also:
setBackground(int)
-
setXScale
public void setXScale(int xScale)
Set the X scale of the texture.- Parameters:
xScale- the scale.- See Also:
getXScale()
-
getXScale
public int getXScale()
Get the X scale of the texture.- Returns:
- the scale.
- See Also:
setXScale(int)
-
setYScale
public void setYScale(int yScale)
Set the Y scale of the texture.- Parameters:
yScale- the scale.- See Also:
getYScale()
-
getYScale
public int getYScale()
Get the Y scale of the texture.- Returns:
- the scale.
- See Also:
setYScale(int)
-
setFuzziness
public void setFuzziness(int fuzziness)
Set the fuzziness of the texture.- Parameters:
fuzziness- the fuzziness.- See Also:
getFuzziness()
-
getFuzziness
public int getFuzziness()
Get the fuzziness of the texture.- Returns:
- the fuzziness.
- See Also:
setFuzziness(int)
-
setAngle
public void setAngle(float angle)
Set the angle of the texture.- Parameters:
angle- the angle of the texture.- See Also:
getAngle()
-
getAngle
public float getAngle()
Get the angle of the texture.- Returns:
- the angle of the texture.
- See Also:
setAngle(float)
-
filterRGB
public int filterRGB(int x, int y, int rgb)- Specified by:
filterRGBin classPointFilter
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-