Class GradientFilter

All Implemented Interfaces:
BufferedImageOp, 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 Details

  • Constructor Details

    • GradientFilter

      public GradientFilter()
    • GradientFilter

      public GradientFilter(Point p1, Point p2, int color1, int color2, boolean repeat, int type, int interpolation)
  • Method Details

    • setPoint1

      public void setPoint1(Point point1)
    • getPoint1

      public Point getPoint1()
    • setPoint2

      public void setPoint2(Point point2)
    • getPoint2

      public 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 BufferedImage filter(BufferedImage src, BufferedImage dst)
    • toString

      public String toString()
      Overrides:
      toString in class Object