org.jscience.media.pictures.filters
Class RotateFilter

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

public class RotateFilter
extends TransformFilter

DOCUMENT ME!

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jscience.media.pictures.filters.TransformFilter
CLAMP, edgeAction, WRAP, ZERO
 
Fields inherited from class org.jscience.media.pictures.filters.WholeImageFilter
canFilterIndexColorModel, defaultRGBModel, inBytePixels, inPixels, originalSpace, transformedSpace
 
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
RotateFilter()
          Creates a new RotateFilter object.
RotateFilter(float angle)
          Creates a new RotateFilter object.
RotateFilter(float angle, boolean resize)
          Creates a new RotateFilter object.
 
Method Summary
 float getAngle()
          DOCUMENT ME!
 void setAngle(float angle)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
protected  void transform(int x, int y, java.awt.Point out)
          DOCUMENT ME!
protected  void transformInverse(int x, int y, float[] out)
          DOCUMENT ME!
protected  void transformSpace(java.awt.Rectangle rect)
          DOCUMENT ME!
 
Methods inherited from class org.jscience.media.pictures.filters.TransformFilter
getEdgeAction, imageComplete, setEdgeAction
 
Methods inherited from class org.jscience.media.pictures.filters.WholeImageFilter
setColorModel, setDimensions, setPixels, setPixels
 
Methods inherited from class java.awt.image.ImageFilter
clone, getFilterInstance, resendTopDownLeftRight, setHints, setProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RotateFilter

public RotateFilter()
Creates a new RotateFilter object.


RotateFilter

public RotateFilter(float angle)
Creates a new RotateFilter object.

Parameters:
angle - DOCUMENT ME!

RotateFilter

public RotateFilter(float angle,
                    boolean resize)
Creates a new RotateFilter object.

Parameters:
angle - DOCUMENT ME!
resize - DOCUMENT ME!
Method Detail

setAngle

public void setAngle(float angle)
DOCUMENT ME!

Parameters:
angle - DOCUMENT ME!

getAngle

public float getAngle()
DOCUMENT ME!

Returns:
DOCUMENT ME!

transformSpace

protected void transformSpace(java.awt.Rectangle rect)
DOCUMENT ME!

Overrides:
transformSpace in class TransformFilter
Parameters:
rect - DOCUMENT ME!

transform

protected void transform(int x,
                         int y,
                         java.awt.Point out)
DOCUMENT ME!

Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
out - DOCUMENT ME!

transformInverse

protected void transformInverse(int x,
                                int y,
                                float[] out)
DOCUMENT ME!

Specified by:
transformInverse in class TransformFilter
Parameters:
x - DOCUMENT ME!
y - DOCUMENT ME!
out - DOCUMENT ME!

toString

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

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