uk.ac.essex.ia.graph.jgraph
Class GraphConverter
java.lang.Object
uk.ac.essex.ia.graph.jgraph.GraphConverter
public class GraphConverter
- extends java.lang.Object
Converts a JGraph
into different formats.
Date: Jun 1, 2002
Method Summary |
static java.lang.String |
edgeGXL(IAJGraph graph,
java.lang.Object id,
java.lang.Object edge)
|
static java.lang.String |
toGXL(IAJGraph graph,
java.lang.Object[] cells)
Create a GXL-representation for the specified cells. |
static java.awt.image.BufferedImage |
toImage(IAJGraph graph)
Create a buffered image of the specified graph. |
static java.lang.String |
vertexGXL(IAJGraph graph,
java.lang.Object id,
java.lang.Object vertex)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphConverter
public GraphConverter()
toImage
public static java.awt.image.BufferedImage toImage(IAJGraph graph)
- Create a buffered image of the specified graph.
- Parameters:
graph
-
- Returns:
toGXL
public static java.lang.String toGXL(IAJGraph graph,
java.lang.Object[] cells)
- Create a GXL-representation for the specified cells.
- Parameters:
graph
- cells
-
- Returns:
vertexGXL
public static java.lang.String vertexGXL(IAJGraph graph,
java.lang.Object id,
java.lang.Object vertex)
edgeGXL
public static java.lang.String edgeGXL(IAJGraph graph,
java.lang.Object id,
java.lang.Object edge)