public class Wireframe extends Plot
Constructor and Description |
---|
Wireframe(double[][] vertices,
int[][] edges)
Constructor.
|
Wireframe(double[][] vertices,
int[][] edges,
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[][] vertices,
int[][] edges)
Create a wire frame plot canvas.
|
static PlotCanvas |
plot(java.lang.String id,
double[][] vertices,
int[][] edges)
Create a 2D grid plot canvas.
|
getID, getToolBar, getToolTip, setID
public Wireframe(double[][] vertices, int[][] edges)
vertices
- a n-by-2 or n-by-3 array which are coordinates of n vertices.edges
- an m-by-2 array of which each row is the vertex indices of two
end points of each edge.public Wireframe(double[][] vertices, int[][] edges, java.awt.Color color)
vertices
- a n-by-2 or n-by-3 array which are coordinates of n vertices.edges
- an m-by-2 array of which each row is the vertex indices of two
end points of each edge.public void paint(Graphics g)
Shape
public static PlotCanvas plot(double[][] vertices, int[][] edges)
vertices
- a n-by-2 or n-by-3 array which are coordinates of n vertices.public static PlotCanvas plot(java.lang.String id, double[][] vertices, int[][] edges)
id
- the id of the plot.vertices
- a n-by-2 or n-by-3 array which are coordinates of n vertices.edges
- an m-by-2 array of which each row is the vertex indices of two
end points of each edge.