public class Surface extends Plot
Constructor and Description |
---|
Surface(double[][] z)
Constructor.
|
Surface(double[][][] data)
Constructor for irregular mesh grid.
|
Surface(double[][][] data,
java.awt.Color[] palette)
Constructor for irregular mesh grid.
|
Surface(double[][] z,
java.awt.Color[] palette)
Constructor.
|
Surface(double[] x,
double[] y,
double[][] z)
Constructor for regular mesh grid.
|
Surface(double[] x,
double[] y,
double[][] z,
java.awt.Color[] palette)
Constructor for regular mesh grid.
|
Modifier and Type | Method and Description |
---|---|
void |
paint(Graphics g)
Draw the component with given graphics object.
|
static PlotCanvas |
plot(double[][] z)
Create a plot canvas with the 3D surface plot of given data.
|
static PlotCanvas |
plot(double[][][] data)
Create a plot canvas with the 3D surface plot of given data.
|
static PlotCanvas |
plot(double[][][] data,
java.awt.Color[] palette)
Create a plot canvas with the 3D surface plot of given data.
|
static PlotCanvas |
plot(double[][] z,
java.awt.Color[] palette)
Create a plot canvas with the 3D surface plot of given data.
|
static PlotCanvas |
plot(double[] x,
double[] y,
double[][] z)
Create a plot canvas with the 3D surface plot of given data.
|
static PlotCanvas |
plot(double[] x,
double[] y,
double[][] z,
java.awt.Color[] palette)
Create a plot canvas with the 3D surface plot of given data.
|
getID, getToolBar, getToolTip, setID
public Surface(double[][] z)
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, ...public Surface(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 Surface(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 Surface(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.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 void paint(Graphics g)
Shape
public static PlotCanvas plot(double[][] z)
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, ...public static PlotCanvas plot(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 PlotCanvas plot(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 PlotCanvas plot(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.public static PlotCanvas plot(double[][][] data)
data
- an m x n x 3 array which are coordinates of m x n surface.public static PlotCanvas plot(double[][][] data, java.awt.Color[] palette)
data
- an m x n x 3 array which are coordinates of m x n surface.palette
- the color palette.