public class Grid extends Plot
| Constructor and Description |
|---|
Grid(double[][][] data,
java.awt.Color color)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
getLowerBound()
Returns the lower bound of data.
|
double[] |
getUpperBound()
Returns the upper bound of data.
|
static Grid |
of(double[][][] data)
Creates a grid with black lines.
|
void |
paint(Graphics g)
Draws the shape.
|
public Grid(double[][][] data,
java.awt.Color color)
data - an m x n x 2 array which are coordinates of m x n grid.public double[] getLowerBound()
PlotgetLowerBound in class Plotpublic double[] getUpperBound()
PlotgetUpperBound in class Plotpublic static Grid of(double[][][] data)
data - an m x n x 2 array which are coordinates of m x n grid.