public class Surface extends Plot
| Constructor and Description |
|---|
Surface(double[][][] data)
Constructor for irregular mesh grid.
|
Surface(double[][][] data,
java.awt.Color[] palette)
Constructor for irregular mesh surface.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
getLowerBound()
Returns the lower bound of data.
|
double[] |
getUpperBound()
Returns the upper bound of data.
|
static Surface |
of(double[][] z,
java.awt.Color[] palette)
Creates a regular mesh surface.
|
static Surface |
of(double[][] z,
int k)
Creates a regular mesh surface with the jet color palette.
|
static Surface |
of(double[] x,
double[] y,
double[][] z)
Creates an irregular mesh grid.
|
static Surface |
of(double[] x,
double[] y,
double[][] z,
java.awt.Color[] palette)
Creates an irregular mesh surface.
|
static Surface |
of(double[] x,
double[] y,
double[][] z,
int k)
Creates an irregular mesh surface with the jet color palette.
|
void |
paint(Graphics g)
Draws the shape.
|
public Surface(double[][][] data)
data - an m x n x 3 array which are coordinates of m x n surface.public Surface(double[][][] data,
java.awt.Color[] palette)
data - an m x n x 3 array which are coordinates of m x n surface.public double[] getLowerBound()
PlotgetLowerBound in class Plotpublic double[] getUpperBound()
PlotgetUpperBound in class Plotpublic static Surface of(double[][] z, int k)
z - the z-axis values of surface. The x-axis and y-axis location of
surface will be set to 0.5, 1.5, 2.5, ...k - the number of colors in the palette.public static Surface of(double[][] z, java.awt.Color[] palette)
z - the z-axis values of surface. The x-axis and y-axis location of
surface will be set to 0.5, 1.5, 2.5, ...palette - the color palette.public static Surface of(double[] x, double[] y, double[][] z)
x - the x-axis values of surface.y - the y-axis values of surface.z - the z-axis values of surface.public static Surface of(double[] x, double[] y, double[][] z, int k)
x - the x-axis values of surface.y - the y-axis values of surface.z - the z-axis values of surface.public static Surface of(double[] x, double[] y, double[][] z, java.awt.Color[] palette)
x - the x-axis values of surface.y - the y-axis values of surface.z - the z-axis values of surface.palette - the color palette.