|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.media.pictures.filters.ArrayColormap
org.jscience.media.pictures.filters.SplineColormap
public class SplineColormap
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.
| Field Summary | |
|---|---|
int |
numKnots
DOCUMENT ME! |
int[] |
xKnots
DOCUMENT ME! |
int[] |
yKnots
DOCUMENT ME! |
| Fields inherited from class org.jscience.media.pictures.filters.ArrayColormap |
|---|
map |
| Constructor Summary | |
|---|---|
SplineColormap()
Creates a new SplineColormap object. |
|
SplineColormap(int[] xKnots,
int[] yKnots)
Creates a new SplineColormap object. |
|
| Method Summary | |
|---|---|
void |
addKnot(int x,
int color)
DOCUMENT ME! |
int |
getKnot(int n)
DOCUMENT ME! |
void |
removeKnot(int n)
DOCUMENT ME! |
void |
setKnot(int n,
int color)
DOCUMENT ME! |
void |
setKnotPosition(int n,
int x)
DOCUMENT ME! |
| Methods inherited from class org.jscience.media.pictures.filters.ArrayColormap |
|---|
clone, getColor, getMap, setColor, setColorInterpolated, setColorRange, setColorRange, setMap |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int numKnots
public int[] xKnots
public int[] yKnots
| Constructor Detail |
|---|
public SplineColormap()
public SplineColormap(int[] xKnots,
int[] yKnots)
xKnots - DOCUMENT ME!yKnots - DOCUMENT ME!| Method Detail |
|---|
public int getKnot(int n)
n - DOCUMENT ME!
public void setKnot(int n,
int color)
n - DOCUMENT ME!color - DOCUMENT ME!
public void addKnot(int x,
int color)
x - DOCUMENT ME!color - DOCUMENT ME!public void removeKnot(int n)
n - DOCUMENT ME!
public void setKnotPosition(int n,
int x)
n - DOCUMENT ME!x - DOCUMENT ME!
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||