public class SplineColormap extends ArrayColormap
map
Constructor and Description |
---|
SplineColormap()
Construct a SplineColormap.
|
SplineColormap(int[] xKnots,
int[] yKnots)
Construct a SplineColormap.
|
Modifier and Type | Method and Description |
---|---|
void |
addKnot(int x,
int color)
Add a new knot.
|
int |
getKnot(int n)
Get a knot color.
|
void |
removeKnot(int n)
Remove a knot.
|
void |
setKnot(int n,
int color)
Set a knot color.
|
void |
setKnotPosition(int n,
int x)
Set a knot position.
|
clone, getColor, getMap, setColor, setColorInterpolated, setColorRange, setColorRange, setMap
public SplineColormap()
public SplineColormap(int[] xKnots, int[] yKnots)
xKnots
- the knot positionsyKnots
- the knot colorspublic void setKnot(int n, int color)
n
- the knot indexcolor
- the colorgetKnot(int)
public int getKnot(int n)
n
- the knot indexsetKnot(int, int)
public void addKnot(int x, int color)
x
- the knot positioncolor
- the colorremoveKnot(int)
public void removeKnot(int n)
n
- the knot indexaddKnot(int, int)
public void setKnotPosition(int n, int x)
n
- the knot indexx
- the knot positionCopyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.