类 SplineColormap
- java.lang.Object
-
- org.meteoinfo.image.filter.ArrayColormap
-
- org.meteoinfo.image.filter.SplineColormap
-
public class SplineColormap extends ArrayColormap
A Colormap implemented using Catmull-Rom colour splines. The map has a variable number of knots with a minimum of four. The first and last knots give the tangent at the end of the spline, and colours are interpolated from the second to the second-last knots.
-
-
字段概要
-
从类继承的字段 org.meteoinfo.image.filter.ArrayColormap
map
-
-
构造器概要
构造器 构造器 说明 SplineColormap()Construct a SplineColormap.SplineColormap(int[] xKnots, int[] yKnots)Construct a SplineColormap.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddKnot(int x, int color)Add a new knot.intgetKnot(int n)Get a knot color.voidremoveKnot(int n)Remove a knot.voidsetKnot(int n, int color)Set a knot color.voidsetKnotPosition(int n, int x)Set a knot position.-
从类继承的方法 org.meteoinfo.image.filter.ArrayColormap
clone, getColor, getMap, setColor, setColorInterpolated, setColorRange, setColorRange, setMap
-
-
-
-
方法详细资料
-
setKnot
public void setKnot(int n, int color)Set a knot color.- 参数:
n- the knot indexcolor- the color- 另请参阅:
getKnot(int)
-
getKnot
public int getKnot(int n)
Get a knot color.- 参数:
n- the knot index- 返回:
- the knot color
- 另请参阅:
setKnot(int, int)
-
addKnot
public void addKnot(int x, int color)Add a new knot.- 参数:
x- the knot positioncolor- the color- 另请参阅:
removeKnot(int)
-
removeKnot
public void removeKnot(int n)
Remove a knot.- 参数:
n- the knot index- 另请参阅:
addKnot(int, int)
-
setKnotPosition
public void setKnotPosition(int n, int x)Set a knot position.- 参数:
n- the knot indexx- the knot position
-
-