org.jscience.media.pictures.filters
Class GradientFilter

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

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

DOCUMENT ME!

See Also:
Serialized Form

Field Summary
static int BICONICAL
          DOCUMENT ME!
static int BILINEAR
          DOCUMENT ME!
static int CONICAL
          DOCUMENT ME!
static int INT_CIRCLE_DOWN
          DOCUMENT ME!
static int INT_CIRCLE_UP
          DOCUMENT ME!
static int INT_LINEAR
          DOCUMENT ME!
static int INT_SMOOTH
          DOCUMENT ME!
static int LINEAR
          DOCUMENT ME!
static int RADIAL
          DOCUMENT ME!
static int SQUARE
          DOCUMENT ME!
 
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
GradientFilter()
          Creates a new GradientFilter object.
GradientFilter(java.awt.Point p1, java.awt.Point p2, int color1, int color2, boolean repeat, int type, int interpolation)
          Creates a new GradientFilter object.
 
Method Summary
 float getAngle()
          DOCUMENT ME!
 Colormap getColormap()
          DOCUMENT ME!
 int getInterpolation()
          DOCUMENT ME!
 int getPaintMode()
          DOCUMENT ME!
 java.awt.Point getPoint1()
          DOCUMENT ME!
 java.awt.Point getPoint2()
          DOCUMENT ME!
 int getType()
          DOCUMENT ME!
 void setAngle(float angle)
          DOCUMENT ME!
 void setColormap(Colormap colormap)
          DOCUMENT ME!
 void setColorModel(java.awt.image.ColorModel model)
          DOCUMENT ME!
 void setDimensions(int width, int height)
          DOCUMENT ME!
 void setInterpolation(int interpolation)
          DOCUMENT ME!
 void setPaintMode(int paintMode)
          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 off, int scansize)
          DOCUMENT ME!
 void setPoint1(java.awt.Point point1)
          DOCUMENT ME!
 void setPoint2(java.awt.Point point2)
          DOCUMENT ME!
 void setType(int type)
          DOCUMENT ME!
 java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class java.awt.image.ImageFilter
clone, getFilterInstance, imageComplete, resendTopDownLeftRight, setHints, setProperties
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LINEAR

public static final int LINEAR
DOCUMENT ME!

See Also:
Constant Field Values

BILINEAR

public static final int BILINEAR
DOCUMENT ME!

See Also:
Constant Field Values

RADIAL

public static final int RADIAL
DOCUMENT ME!

See Also:
Constant Field Values

CONICAL

public static final int CONICAL
DOCUMENT ME!

See Also:
Constant Field Values

BICONICAL

public static final int BICONICAL
DOCUMENT ME!

See Also:
Constant Field Values

SQUARE

public static final int SQUARE
DOCUMENT ME!

See Also:
Constant Field Values

INT_LINEAR

public static final int INT_LINEAR
DOCUMENT ME!

See Also:
Constant Field Values

INT_CIRCLE_UP

public static final int INT_CIRCLE_UP
DOCUMENT ME!

See Also:
Constant Field Values

INT_CIRCLE_DOWN

public static final int INT_CIRCLE_DOWN
DOCUMENT ME!

See Also:
Constant Field Values

INT_SMOOTH

public static final int INT_SMOOTH
DOCUMENT ME!

See Also:
Constant Field Values
Constructor Detail

GradientFilter

public GradientFilter()
Creates a new GradientFilter object.


GradientFilter

public GradientFilter(java.awt.Point p1,
                      java.awt.Point p2,
                      int color1,
                      int color2,
                      boolean repeat,
                      int type,
                      int interpolation)
Creates a new GradientFilter object.

Parameters:
p1 - DOCUMENT ME!
p2 - DOCUMENT ME!
color1 - DOCUMENT ME!
color2 - DOCUMENT ME!
repeat - DOCUMENT ME!
type - DOCUMENT ME!
interpolation - DOCUMENT ME!
Method Detail

setPoint1

public void setPoint1(java.awt.Point point1)
DOCUMENT ME!

Parameters:
point1 - DOCUMENT ME!

getPoint1

public java.awt.Point getPoint1()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setPoint2

public void setPoint2(java.awt.Point point2)
DOCUMENT ME!

Parameters:
point2 - DOCUMENT ME!

getPoint2

public java.awt.Point getPoint2()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setType

public void setType(int type)
DOCUMENT ME!

Parameters:
type - DOCUMENT ME!

getType

public int getType()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setInterpolation

public void setInterpolation(int interpolation)
DOCUMENT ME!

Parameters:
interpolation - DOCUMENT ME!

getInterpolation

public int getInterpolation()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setAngle

public void setAngle(float angle)
DOCUMENT ME!

Parameters:
angle - DOCUMENT ME!

getAngle

public float getAngle()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setColormap

public void setColormap(Colormap colormap)
DOCUMENT ME!

Parameters:
colormap - DOCUMENT ME!

getColormap

public Colormap getColormap()
DOCUMENT ME!

Returns:
DOCUMENT ME!

setPaintMode

public void setPaintMode(int paintMode)
DOCUMENT ME!

Parameters:
paintMode - DOCUMENT ME!

getPaintMode

public int getPaintMode()
DOCUMENT ME!

Returns:
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!

setColorModel

public void setColorModel(java.awt.image.ColorModel model)
DOCUMENT ME!

Specified by:
setColorModel in interface java.awt.image.ImageConsumer
Overrides:
setColorModel in class java.awt.image.ImageFilter
Parameters:
model - 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 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!

toString

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

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