public class Grid extends Plot
| Constructor and Description |
|---|
Grid(double[][][] data)
Constructor.
|
Grid(double[][][] data,
boolean drawNodes)
Constructor.
|
Grid(double[][][] data,
boolean drawNodes,
java.awt.Color color)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
paint(Graphics g)
Draw the component with given graphics object.
|
static PlotCanvas |
plot(double[][][] data)
Create a 2D grid plot canvas.
|
static PlotCanvas |
plot(java.lang.String id,
double[][][] data)
Create a 2D grid plot canvas.
|
boolean |
setDrawNodes()
Gets if draw the nodes.
|
void |
setDrawNodes(boolean drawNodes)
Sets if draw the nodes.
|
getID, getToolBar, getToolTip, setIDpublic Grid(double[][][] data)
data - an m x n x 2 array which are coordinates of m x n grid.public Grid(double[][][] data,
boolean drawNodes)
data - an m x n x 2 array which are coordinates of m x n grid.public Grid(double[][][] data,
boolean drawNodes,
java.awt.Color color)
data - an m x n x 2 array which are coordinates of m x n grid.public boolean setDrawNodes()
public void setDrawNodes(boolean drawNodes)
public void paint(Graphics g)
Shapepublic static PlotCanvas plot(double[][][] data)
data - an m x n x 2 array which are coordinates of m x n grid.public static PlotCanvas plot(java.lang.String id, double[][][] data)
id - the id of the plot.data - an m x n x 2 array which are coordinates of m x n grid.