org.jscience.media.pictures.filters
Class OffsetFilter

java.lang.Object
  extended by java.awt.image.ImageFilter
      extended by org.jscience.media.pictures.filters.OffsetFilter
All Implemented Interfaces:
java.awt.image.ImageConsumer, java.io.Serializable, java.lang.Cloneable

public class OffsetFilter
extends java.awt.image.ImageFilter
implements java.io.Serializable

DOCUMENT ME!

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.awt.image.ImageFilter
consumer
 
Fields inherited from interface java.awt.image.ImageConsumer
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT
 
Constructor Summary
OffsetFilter()
          Creates a new OffsetFilter object.
OffsetFilter(int xOffset, int yOffset, boolean wrap)
          Creates a new OffsetFilter object.
 
Method Summary
 boolean getWrap()
          DOCUMENT ME!
 int getXOffset()
          DOCUMENT ME!
 int getYOffset()
          DOCUMENT ME!
 void setDimensions(int width, int height)
          DOCUMENT ME!
 void setHints(int hintflags)
          DOCUMENT ME!
 void setPixels(int x, int y, int w, int h, java.awt.image.ColorModel model, byte[] pixels, int off, int scansize)
          DOCUMENT ME!
 void setPixels(int x, int y, int w, int h, java.awt.image.ColorModel model, int[] pixels, int offset, int scansize)
          DOCUMENT ME!
 void setWrap(boolean wrap)
          DOCUMENT ME!
 void setXOffset(int xOffset)
          DOCUMENT ME!
 void setYOffset(int yOffset)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class java.awt.image.ImageFilter
clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setColorModel, setProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OffsetFilter

public OffsetFilter()
Creates a new OffsetFilter object.


OffsetFilter

public OffsetFilter(int xOffset,
                    int yOffset,
                    boolean wrap)
Creates a new OffsetFilter object.

Parameters:
xOffset - DOCUMENT ME!
yOffset - DOCUMENT ME!
wrap - DOCUMENT ME!
Method Detail

setXOffset

public void setXOffset(int xOffset)
DOCUMENT ME!

Parameters:
xOffset - DOCUMENT ME!

getXOffset

public int getXOffset()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setYOffset

public void setYOffset(int yOffset)
DOCUMENT ME!

Parameters:
yOffset - DOCUMENT ME!

getYOffset

public int getYOffset()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setWrap

public void setWrap(boolean wrap)
DOCUMENT ME!

Parameters:
wrap - DOCUMENT ME!

getWrap

public boolean getWrap()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setHints

public void setHints(int hintflags)
DOCUMENT ME!

Specified by:
setHints in interface java.awt.image.ImageConsumer
Overrides:
setHints in class java.awt.image.ImageFilter
Parameters:
hintflags - DOCUMENT ME!

setDimensions

public void setDimensions(int width,
                          int height)
DOCUMENT ME!

Specified by:
setDimensions in interface java.awt.image.ImageConsumer
Overrides:
setDimensions in class java.awt.image.ImageFilter
Parameters:
width - DOCUMENT ME!
height - DOCUMENT ME!

setPixels

public void setPixels(int x,
                      int y,
                      int w,
                      int h,
                      java.awt.image.ColorModel model,
                      byte[] pixels,
                      int off,
                      int scansize)
DOCUMENT ME!

Specified by:
setPixels in interface java.awt.image.ImageConsumer
Overrides:
setPixels in class java.awt.image.ImageFilter
Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
w - DOCUMENT ME!
h - DOCUMENT ME!
model - DOCUMENT ME!
pixels - DOCUMENT ME!
off - DOCUMENT ME!
scansize - DOCUMENT ME!

setPixels

public void setPixels(int x,
                      int y,
                      int w,
                      int h,
                      java.awt.image.ColorModel model,
                      int[] pixels,
                      int offset,
                      int scansize)
DOCUMENT ME!

Specified by:
setPixels in interface java.awt.image.ImageConsumer
Overrides:
setPixels in class java.awt.image.ImageFilter
Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
w - DOCUMENT ME!
h - DOCUMENT ME!
model - DOCUMENT ME!
pixels - DOCUMENT ME!
offset - DOCUMENT ME!
scansize - DOCUMENT ME!

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!