public class Gradient extends ArrayColormap implements java.lang.Cloneable, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
CIRCLE_DOWN |
static int |
CIRCLE_UP |
static int |
CONSTANT |
static int |
HUE_CCW |
static int |
HUE_CW |
byte[] |
knotTypes |
static int |
LINEAR |
int |
numKnots |
static int |
RGB |
static int |
SPLINE |
int[] |
xKnots |
int[] |
yKnots |
map| Constructor and Description |
|---|
Gradient() |
Gradient(int[] rgb) |
Gradient(int[] x,
int[] rgb) |
Gradient(int[] x,
int[] rgb,
byte[] types) |
| Modifier and Type | Method and Description |
|---|---|
void |
addKnot(int x,
int color,
int type) |
java.lang.Object |
clone() |
void |
copyTo(Gradient g) |
int |
getKnot(int n) |
byte |
getKnotBlend(int n) |
int |
getKnotType(int n) |
int |
knotAt(int x) |
static Gradient |
randomGradient() |
void |
randomize() |
void |
rebuild() |
void |
removeKnot(int n) |
void |
setColor(int n,
int color) |
void |
setKnot(int n,
int color) |
void |
setKnotBlend(int n,
int type) |
void |
setKnotPosition(int n,
int x) |
void |
setKnots(int[] x,
int[] rgb,
byte[] types) |
void |
setKnots(int[] x,
int[] y,
byte[] types,
int offset,
int count) |
void |
setKnotType(int n,
int type) |
void |
splitSpan(int n) |
getColor, getMap, setColorInterpolated, setColorRange, setColorRange, setMappublic static final int RGB
public static final int HUE_CW
public static final int HUE_CCW
public static final int LINEAR
public static final int SPLINE
public static final int CIRCLE_UP
public static final int CIRCLE_DOWN
public static final int CONSTANT
public int numKnots
public int[] xKnots
public int[] yKnots
public byte[] knotTypes
public Gradient()
public Gradient(int[] rgb)
public Gradient(int[] x,
int[] rgb)
public Gradient(int[] x,
int[] rgb,
byte[] types)
public java.lang.Object clone()
clone in class ArrayColormappublic void copyTo(Gradient g)
public void setColor(int n,
int color)
setColor in class ArrayColormappublic int getKnot(int n)
public void setKnot(int n,
int color)
public void setKnotType(int n,
int type)
public int getKnotType(int n)
public void setKnotBlend(int n,
int type)
public byte getKnotBlend(int n)
public void addKnot(int x,
int color,
int type)
public void removeKnot(int n)
public void setKnots(int[] x,
int[] rgb,
byte[] types)
public void setKnots(int[] x,
int[] y,
byte[] types,
int offset,
int count)
public void splitSpan(int n)
public void setKnotPosition(int n,
int x)
public int knotAt(int x)
public void rebuild()
public void randomize()
public static Gradient randomGradient()