com.jhlabs.image
Class GradientFilter

java.lang.Object
  extended by com.jhlabs.image.AbstractBufferedImageOp
      extended by com.jhlabs.image.GradientFilter
All Implemented Interfaces:
ImageProcessorInterface, java.awt.image.BufferedImageOp, java.lang.Cloneable

public class GradientFilter
extends AbstractBufferedImageOp

A filter which draws a coloured gradient. This is largely superceded by GradientPaint in Java1.2, but does provide a few more gradient options.


Field Summary
static int BICONICAL
           
static int BILINEAR
           
static int CONICAL
           
static int INT_CIRCLE_DOWN
           
static int INT_CIRCLE_UP
           
static int INT_LINEAR
           
static int INT_SMOOTH
           
static int LINEAR
           
static int RADIAL
           
static int SQUARE
           
 
Constructor Summary
GradientFilter()
           
GradientFilter(java.awt.Point p1, java.awt.Point p2, int color1, int color2, boolean repeat, int type, int interpolation)
           
 
Method Summary
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dst)
           
 float getAngle()
           
 Colormap getColormap()
           
 int getInterpolation()
           
 int getPaintMode()
           
 java.awt.Point getPoint1()
           
 java.awt.Point getPoint2()
           
 int getType()
           
 void setAngle(float angle)
           
 void setColormap(Colormap colormap)
           
 void setInterpolation(int interpolation)
           
 void setPaintMode(int paintMode)
           
 void setPoint1(java.awt.Point point1)
           
 void setPoint2(java.awt.Point point2)
           
 void setType(int type)
           
 java.lang.String toString()
           
 
Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp
createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, process, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LINEAR

public static final int LINEAR
See Also:
Constant Field Values

BILINEAR

public static final int BILINEAR
See Also:
Constant Field Values

RADIAL

public static final int RADIAL
See Also:
Constant Field Values

CONICAL

public static final int CONICAL
See Also:
Constant Field Values

BICONICAL

public static final int BICONICAL
See Also:
Constant Field Values

SQUARE

public static final int SQUARE
See Also:
Constant Field Values

INT_LINEAR

public static final int INT_LINEAR
See Also:
Constant Field Values

INT_CIRCLE_UP

public static final int INT_CIRCLE_UP
See Also:
Constant Field Values

INT_CIRCLE_DOWN

public static final int INT_CIRCLE_DOWN
See Also:
Constant Field Values

INT_SMOOTH

public static final int INT_SMOOTH
See Also:
Constant Field Values
Constructor Detail

GradientFilter

public GradientFilter()

GradientFilter

public GradientFilter(java.awt.Point p1,
                      java.awt.Point p2,
                      int color1,
                      int color2,
                      boolean repeat,
                      int type,
                      int interpolation)
Method Detail

setPoint1

public void setPoint1(java.awt.Point point1)

getPoint1

public java.awt.Point getPoint1()

setPoint2

public void setPoint2(java.awt.Point point2)

getPoint2

public java.awt.Point getPoint2()

setType

public void setType(int type)

getType

public int getType()

setInterpolation

public void setInterpolation(int interpolation)

getInterpolation

public int getInterpolation()

setAngle

public void setAngle(float angle)

getAngle

public float getAngle()

setColormap

public void setColormap(Colormap colormap)

getColormap

public Colormap getColormap()

setPaintMode

public void setPaintMode(int paintMode)

getPaintMode

public int getPaintMode()

filter

public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
                                           java.awt.image.BufferedImage dst)

toString

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