public class GridLayout
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
GridPoint[][] |
bendPoints
2D positions of the bend points: every edge can have a maximum of 'k' bends.
|
int |
e
number of edges of the graph
|
AdjacencyListGraph |
g
Input graph to draw: no combinatorial embedding provided (only the 1-skeleton of the graph)
|
Jcg.polyhedron.Polyhedron_3<Jcg.geometry.Point_3> |
mesh
input mesh to draw: a graph provided with its combinatorial embedding
|
int |
n
number of vertices of the graph
|
GridPoint[] |
points
2D positions of the vertices of the graph defining the planar layout.
|
Constructor and Description |
---|
GridLayout(AdjacencyListGraph g,
int bends)
Initialize the drawing: by the default all vertices are placed at the origin (0.0, 0.0)
|
Modifier and Type | Method and Description |
---|---|
void |
printCoordinates() |
public int n
public int e
public AdjacencyListGraph g
public Jcg.polyhedron.Polyhedron_3<Jcg.geometry.Point_3> mesh
public GridPoint[] points
public GridPoint[][] bendPoints
public GridLayout(AdjacencyListGraph g, int bends)
graph
- the input graph (no combinatorial embedding provided)bends
- maximum number of bends per edge