j2d.filters
Class BrushedMetalFilter

java.lang.Object
  extended by j2d.filters.AbstractBufferedImageOp
      extended by j2d.filters.WholeImageFilter
          extended by j2d.filters.BrushedMetalFilter
All Implemented Interfaces:
ImageProcessorInterface, java.awt.image.BufferedImageOp, java.io.Serializable, java.lang.Cloneable

public class BrushedMetalFilter
extends WholeImageFilter

A filter which produces an image simulating brushed metal.

See Also:
Serialized Form

Constructor Summary
BrushedMetalFilter()
           
 
Method Summary
 void blur(int[] in, int[] out, int width, int radius)
           
 java.awt.image.BufferedImage createCompatibleDestImage(java.awt.image.BufferedImage src, java.awt.image.ColorModel dstCM)
           
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
           
 float getAmount()
           
 java.awt.geom.Rectangle2D getBounds2D(java.awt.image.BufferedImage src)
           
 int getColor()
           
 boolean getMonochrome()
           
 java.awt.geom.Point2D getPoint2D(java.awt.geom.Point2D srcPt, java.awt.geom.Point2D dstPt)
           
 int getRadius()
           
 java.awt.RenderingHints getRenderingHints()
           
 float getShine()
           
 void setAmount(float amount)
           
 void setColor(java.awt.Color color)
           
 void setMonochrome(boolean monochrome)
           
 void setRadius(int radius)
           
 void setRGB(java.awt.image.BufferedImage image, int x, int y, int width, int height, int[] pixels)
          A convenience method for setting ARGB pixels in an image.
 void setShine(float shine)
           
 java.lang.String toString()
           
 
Methods inherited from class j2d.filters.AbstractBufferedImageOp
getRGB, process
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BrushedMetalFilter

public BrushedMetalFilter()
Method Detail

filter

public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
                                           java.awt.image.BufferedImage dst)
Specified by:
filter in interface java.awt.image.BufferedImageOp
Overrides:
filter in class WholeImageFilter

blur

public void blur(int[] in,
                 int[] out,
                 int width,
                 int radius)

setRadius

public void setRadius(int radius)

getRadius

public int getRadius()

setAmount

public void setAmount(float amount)

getAmount

public float getAmount()

setColor

public void setColor(java.awt.Color color)

getColor

public int getColor()

setMonochrome

public void setMonochrome(boolean monochrome)

getMonochrome

public boolean getMonochrome()

setShine

public void setShine(float shine)

getShine

public float getShine()

createCompatibleDestImage

public java.awt.image.BufferedImage createCompatibleDestImage(java.awt.image.BufferedImage src,
                                                              java.awt.image.ColorModel dstCM)
Specified by:
createCompatibleDestImage in interface java.awt.image.BufferedImageOp
Overrides:
createCompatibleDestImage in class AbstractBufferedImageOp

getBounds2D

public java.awt.geom.Rectangle2D getBounds2D(java.awt.image.BufferedImage src)
Specified by:
getBounds2D in interface java.awt.image.BufferedImageOp
Overrides:
getBounds2D in class AbstractBufferedImageOp

getPoint2D

public java.awt.geom.Point2D getPoint2D(java.awt.geom.Point2D srcPt,
                                        java.awt.geom.Point2D dstPt)
Specified by:
getPoint2D in interface java.awt.image.BufferedImageOp
Overrides:
getPoint2D in class AbstractBufferedImageOp

getRenderingHints

public java.awt.RenderingHints getRenderingHints()
Specified by:
getRenderingHints in interface java.awt.image.BufferedImageOp
Overrides:
getRenderingHints in class AbstractBufferedImageOp

setRGB

public void setRGB(java.awt.image.BufferedImage image,
                   int x,
                   int y,
                   int width,
                   int height,
                   int[] pixels)
A convenience method for setting ARGB pixels in an image. This tries to avoid the performance penalty of BufferedImage.setRGB unmanaging the image.

Overrides:
setRGB in class AbstractBufferedImageOp

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object