类 GradientFilter
- java.lang.Object
-
- org.meteoinfo.image.filter.AbstractBufferedImageOp
-
- org.meteoinfo.image.filter.GradientFilter
-
- 所有已实现的接口:
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.
-
-
字段概要
字段 修饰符和类型 字段 说明 static intBICONICALstatic intBILINEARstatic intCONICALstatic intINT_CIRCLE_DOWNstatic intINT_CIRCLE_UPstatic intINT_LINEARstatic intINT_SMOOTHstatic intLINEARstatic intRADIALstatic intSQUARE
-
构造器概要
构造器 构造器 说明 GradientFilter()GradientFilter(Point p1, Point p2, int color1, int color2, boolean repeat, int type, int interpolation)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 BufferedImagefilter(BufferedImage src, BufferedImage dst)floatgetAngle()Returns the angle of the texture.ColormapgetColormap()Get the colormap to be used for the filter.intgetInterpolation()intgetPaintMode()PointgetPoint1()PointgetPoint2()intgetType()voidsetAngle(float angle)Specifies the angle of the texture.voidsetColormap(Colormap colormap)Set the colormap to be used for the filter.voidsetInterpolation(int interpolation)voidsetPaintMode(int paintMode)voidsetPoint1(Point point1)voidsetPoint2(Point point2)voidsetType(int type)StringtoString()-
从类继承的方法 org.meteoinfo.image.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
-
-
-
字段详细资料
-
LINEAR
public static final int LINEAR
- 另请参阅:
- 常量字段值
-
BILINEAR
public static final int BILINEAR
- 另请参阅:
- 常量字段值
-
RADIAL
public static final int RADIAL
- 另请参阅:
- 常量字段值
-
CONICAL
public static final int CONICAL
- 另请参阅:
- 常量字段值
-
BICONICAL
public static final int BICONICAL
- 另请参阅:
- 常量字段值
-
SQUARE
public static final int SQUARE
- 另请参阅:
- 常量字段值
-
INT_LINEAR
public static final int INT_LINEAR
- 另请参阅:
- 常量字段值
-
INT_CIRCLE_UP
public static final int INT_CIRCLE_UP
- 另请参阅:
- 常量字段值
-
INT_CIRCLE_DOWN
public static final int INT_CIRCLE_DOWN
- 另请参阅:
- 常量字段值
-
INT_SMOOTH
public static final int INT_SMOOTH
- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
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)
Specifies the angle of the texture.- 参数:
angle- the angle of the texture.- 另请参阅:
getAngle()
-
getAngle
public float getAngle()
Returns the angle of the texture.- 返回:
- the angle of the texture.
- 另请参阅:
setAngle(float)
-
setColormap
public void setColormap(Colormap colormap)
Set the colormap to be used for the filter.- 参数:
colormap- the colormap- 另请参阅:
getColormap()
-
getColormap
public Colormap getColormap()
Get the colormap to be used for the filter.- 返回:
- the colormap
- 另请参阅:
setColormap(org.meteoinfo.image.filter.Colormap)
-
setPaintMode
public void setPaintMode(int paintMode)
-
getPaintMode
public int getPaintMode()
-
filter
public BufferedImage filter(BufferedImage src, BufferedImage dst)
-
-