public class mxGmlCodec
extends java.lang.Object
| Constructor and Description |
|---|
mxGmlCodec() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addEdgeData(mxGmlEdge gmlEdge,
mxCell v)
Add the edge data in the gmlEdge.
|
static void |
addNodeData(mxGmlNode gmlNode,
mxCell v)
Add the node data in the gmlNode.
|
static void |
decode(org.w3c.dom.Document document,
mxGraph graph)
Receives a GraphMl document and parses it generating a new graph that is inserted in graph.
|
static mxGmlGraph |
decodeGraph(mxGraph graph,
java.lang.Object parent,
mxGmlGraph gmlGraph)
Returns a Gml graph with the data of the vertexes and edges in the graph.
|
static org.w3c.dom.Document |
encode(mxGraph graph)
Generates a Xml document with the cells in the graph.
|
static org.w3c.dom.Document |
encodeXML(mxGmlGraph gmlGraph)
Generates a Xml document with the gmlGraph.
|
public static void decode(org.w3c.dom.Document document,
mxGraph graph)
document - XML to be parsedgraph - Graph where the parsed graph is included.public static org.w3c.dom.Document encodeXML(mxGmlGraph gmlGraph)
gmlGraph - Graph model.public static org.w3c.dom.Document encode(mxGraph graph)
graph - Graph with the cells.public static mxGmlGraph decodeGraph(mxGraph graph, java.lang.Object parent, mxGmlGraph gmlGraph)
gmlGraph - Gml document where the elements are put.parent - Parent cell of the vertexes and edges to be added.graph - Graph that contains the vertexes and edges.public static void addNodeData(mxGmlNode gmlNode, mxCell v)
gmlNode - Gml node where the data add.v - mxCell where data are obtained.Copyright (c) 2010 Gaudenz Alder. All rights reserved.