public class Gradient
extends java.lang.Object
A gradient is constructed from a matrix, an array of fractions and an array of colors.
Constructor and Description |
---|
Gradient(Matrix matrix)
Create a gradient from a matrix
|
Modifier and Type | Method and Description |
---|---|
java.awt.Color[] |
getColors()
Get the gradient colors
|
float[] |
getFractions()
Get the gradient fractions
|
int |
getHandle()
Get an handle to the gradient object.
|
Matrix |
getMatrix()
Get the gradient matrix
|
void |
setColors(int[] colors)
Set the gradient colors array
|
void |
setFractions(int[] intFractions)
Set the gradient fractions array
|
public Gradient(Matrix matrix)
matrix
- initial value of the gradient matrix.public int getHandle()
public Matrix getMatrix()
public float[] getFractions()
public void setFractions(int[] intFractions)
intFractions
- a fractions array from which the fractions array will be initialized.public java.awt.Color[] getColors()
public void setColors(int[] colors)
colors
- a colors array from which the colors array will be initialized.