|
mxGraph 2.1.1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mxgraph.io.mxGraphMlCodec
public class mxGraphMlCodec
Parses a GraphML .graphml file and imports it in the given graph.
See wikipedia.org/wiki/GraphML for more on GraphML.
This class depends from the classes contained in
com.mxgraph.io.gmlImplements.
Constructor Summary | |
---|---|
mxGraphMlCodec()
|
Method Summary | |
---|---|
static void |
addEdgeData(mxGraphMlEdge gmlEdge,
mxCell v)
Add the edge data in the gmlEdge. |
static void |
addNodeData(mxGraphMlNode gmlNode,
mxCell v)
Add the node data in the gmlNode. |
static void |
decode(Document document,
mxGraph graph)
Receives a GraphMl document and parses it generating a new graph that is inserted in graph. |
static mxGraphMlGraph |
decodeGraph(mxGraph graph,
Object parent,
mxGraphMlGraph gmlGraph)
Returns a Gml graph with the data of the vertexes and edges in the graph. |
static Document |
encode(mxGraph graph)
Generates a Xml document with the cells in the graph. |
static Document |
encodeXML(mxGraphMlGraph gmlGraph)
Generates a Xml document with the gmlGraph. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public mxGraphMlCodec()
Method Detail |
---|
public static void decode(Document document, mxGraph graph)
document
- XML to be parsedgraph
- Graph where the parsed graph is included.public static Document encodeXML(mxGraphMlGraph gmlGraph)
gmlGraph
- Graph model.
public static Document encode(mxGraph graph)
graph
- Graph with the cells.
public static mxGraphMlGraph decodeGraph(mxGraph graph, Object parent, mxGraphMlGraph 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(mxGraphMlNode gmlNode, mxCell v)
gmlNode
- Gml node where the data add.v
- mxCell where data are obtained.public static void addEdgeData(mxGraphMlEdge gmlEdge, mxCell v)
gmlEdge
- Gml edge where the data add.v
- mxCell where data are obtained.
|
mxGraph 2.1.1.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |