public abstract class GraphDrawing<X extends Point_>
extends java.lang.Object
Constructor and Description |
---|
GraphDrawing() |
Modifier and Type | Method and Description |
---|---|
abstract void |
computeDrawing()
(abstract method) compute the geometric representation of the graph
|
int |
dimension()
return the dimension of the representation: 2 or 3
|
void |
draw2D()
draw the graph in a 2D frame
|
void |
draw3D()
draw the graph in 3D (using class MeshViewer)
|
X |
getPoint(int i)
returns the position of a vertex in the space (2D or 3D)
|
Point_2 |
getPoint2(int i) |
java.lang.String |
toString()
return vertex coordinates
|
public X getPoint(int i)
public Point_2 getPoint2(int i)
public int dimension()
public java.lang.String toString()
toString
in class java.lang.Object
public abstract void computeDrawing()
public void draw2D()
public void draw3D()