All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.jhlabs.image.SplineColormap

java.lang.Object
   |
   +----com.jhlabs.image.ArrayColormap
           |
           +----com.jhlabs.image.SplineColormap

public class SplineColormap
extends com.jhlabs.image.ArrayColormap
implements java.io.Serializable
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.


Variable Index

 o numKnots
 o xKnots
 o yKnots

Constructor Index

 o SplineColormap()
 o SplineColormap(int[], int[])

Method Index

 o addKnot(int, int)
 o getKnot(int)
 o removeKnot(int)
 o setKnot(int, int)
 o setKnotPosition(int, int)

Variables

 o numKnots
 public int numKnots
 o xKnots
 public int xKnots[]
 o yKnots
 public int yKnots[]

Constructors

 o SplineColormap
 public SplineColormap()
 o SplineColormap
 public SplineColormap(int xKnots[],
                       int yKnots[])

Methods

 o getKnot
 public int getKnot(int n)
 o setKnot
 public void setKnot(int n,
                     int color)
 o addKnot
 public void addKnot(int x,
                     int color)
 o removeKnot
 public void removeKnot(int n)
 o setKnotPosition
 public void setKnotPosition(int n,
                             int x)

All Packages  Class Hierarchy  This Package  Previous  Next  Index