public class SplineColormap extends ArrayColormap
map| 构造器 | 说明 |
|---|---|
SplineColormap() |
Construct a SplineColormap.
|
SplineColormap(int[] xKnots,
int[] yKnots) |
Construct a SplineColormap.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
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, setMappublic 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 © 2019. All rights reserved.