<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</A>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><B>com.mxgraph.io.mxGraphMlCodec</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>mxGraphMlCodec</B><DT>extends <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></DL>
</PRE>
<P>
Parses a GraphML .graphml file and imports it in the given graph.<br/>
See wikipedia.org/wiki/GraphML for more on GraphML.
<TD><CODE><B><AHREF="../../../com/mxgraph/io/mxGraphMlCodec.html#addEdgeData(com.mxgraph.io.graphml.mxGraphMlEdge, com.mxgraph.model.mxCell)">addEdgeData</A></B>(<AHREF="../../../com/mxgraph/io/graphml/mxGraphMlEdge.html"title="class in com.mxgraph.io.graphml">mxGraphMlEdge</A> gmlEdge,
<AHREF="../../../com/mxgraph/model/mxCell.html"title="class in com.mxgraph.model">mxCell</A> v)</CODE>
<BR>
Add the edge data in the gmlEdge.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/io/mxGraphMlCodec.html#addNodeData(com.mxgraph.io.graphml.mxGraphMlNode, com.mxgraph.model.mxCell)">addNodeData</A></B>(<AHREF="../../../com/mxgraph/io/graphml/mxGraphMlNode.html"title="class in com.mxgraph.io.graphml">mxGraphMlNode</A> gmlNode,
<AHREF="../../../com/mxgraph/model/mxCell.html"title="class in com.mxgraph.model">mxCell</A> v)</CODE>
<BR>
Add the node data in the gmlNode.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/io/mxGraphMlCodec.html#decode(org.w3c.dom.Document, com.mxgraph.view.mxGraph)">decode</A></B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/Document.html?is-external=true"title="class or interface in org.w3c.dom">Document</A> document,
<AHREF="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</A> graph)</CODE>
<BR>
Receives a GraphMl document and parses it generating a new graph that is inserted in graph.</TD>
<CODE>static <AHREF="../../../com/mxgraph/io/graphml/mxGraphMlGraph.html"title="class in com.mxgraph.io.graphml">mxGraphMlGraph</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/io/mxGraphMlCodec.html#decodeGraph(com.mxgraph.view.mxGraph, java.lang.Object, com.mxgraph.io.graphml.mxGraphMlGraph)">decodeGraph</A></B>(<AHREF="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</A> graph,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> parent,
<AHREF="../../../com/mxgraph/io/graphml/mxGraphMlGraph.html"title="class in com.mxgraph.io.graphml">mxGraphMlGraph</A> gmlGraph)</CODE>
<BR>
Returns a Gml graph with the data of the vertexes and edges in the graph.</TD>
<CODE>static <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/Document.html?is-external=true"title="class or interface in org.w3c.dom">Document</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/io/mxGraphMlCodec.html#encode(com.mxgraph.view.mxGraph)">encode</A></B>(<AHREF="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</A> graph)</CODE>
<BR>
Generates a Xml document with the cells in the graph.</TD>
<CODE>static <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/Document.html?is-external=true"title="class or interface in org.w3c.dom">Document</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/io/mxGraphMlCodec.html#encodeXML(com.mxgraph.io.graphml.mxGraphMlGraph)">encodeXML</A></B>(<AHREF="../../../com/mxgraph/io/graphml/mxGraphMlGraph.html"title="class in com.mxgraph.io.graphml">mxGraphMlGraph</A> gmlGraph)</CODE>
<BR>
Generates a Xml document with the gmlGraph.</TD>
<THALIGN="left"><B>Methods inherited from class java.lang.<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><CODE><AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()"title="class or interface in java.lang">clone</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang">equals</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()"title="class or interface in java.lang">finalize</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()"title="class or interface in java.lang">toString</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang">wait</A>, <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)"title="class or interface in java.lang">wait</A></CODE></TD>
public static void <B>decode</B>(<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/Document.html?is-external=true"title="class or interface in org.w3c.dom">Document</A> document,
<AHREF="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</A> graph)</PRE>
<DL>
<DD>Receives a GraphMl document and parses it generating a new graph that is inserted in graph.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>document</CODE> - XML to be parsed<DD><CODE>graph</CODE> - Graph where the parsed graph is included.</DL>
public static <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/Document.html?is-external=true"title="class or interface in org.w3c.dom">Document</A><B>encodeXML</B>(<AHREF="../../../com/mxgraph/io/graphml/mxGraphMlGraph.html"title="class in com.mxgraph.io.graphml">mxGraphMlGraph</A> gmlGraph)</PRE>
public static <AHREF="http://download.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/Document.html?is-external=true"title="class or interface in org.w3c.dom">Document</A><B>encode</B>(<AHREF="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</A> graph)</PRE>
<DL>
<DD>Generates a Xml document with the cells in the graph.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>graph</CODE> - Graph with the cells.
<DT><B>Returns:</B><DD>The Xml document generated.</DL>
public static <AHREF="../../../com/mxgraph/io/graphml/mxGraphMlGraph.html"title="class in com.mxgraph.io.graphml">mxGraphMlGraph</A><B>decodeGraph</B>(<AHREF="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</A> graph,
<AHREF="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</A> parent,
<AHREF="../../../com/mxgraph/io/graphml/mxGraphMlGraph.html"title="class in com.mxgraph.io.graphml">mxGraphMlGraph</A> gmlGraph)</PRE>
<DL>
<DD>Returns a Gml graph with the data of the vertexes and edges in the graph.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>gmlGraph</CODE> - Gml document where the elements are put.<DD><CODE>parent</CODE> - Parent cell of the vertexes and edges to be added.<DD><CODE>graph</CODE> - Graph that contains the vertexes and edges.
<DT><B>Returns:</B><DD>Returns the document with the elements added.</DL>
public static void <B>addNodeData</B>(<AHREF="../../../com/mxgraph/io/graphml/mxGraphMlNode.html"title="class in com.mxgraph.io.graphml">mxGraphMlNode</A> gmlNode,
<AHREF="../../../com/mxgraph/model/mxCell.html"title="class in com.mxgraph.model">mxCell</A> v)</PRE>
<DL>
<DD>Add the node data in the gmlNode.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>gmlNode</CODE> - Gml node where the data add.<DD><CODE>v</CODE> - mxCell where data are obtained.</DL>
public static void <B>addEdgeData</B>(<AHREF="../../../com/mxgraph/io/graphml/mxGraphMlEdge.html"title="class in com.mxgraph.io.graphml">mxGraphMlEdge</A> gmlEdge,
<AHREF="../../../com/mxgraph/model/mxCell.html"title="class in com.mxgraph.model">mxCell</A> v)</PRE>
<DL>
<DD>Add the edge data in the gmlEdge.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>gmlEdge</CODE> - Gml edge where the data add.<DD><CODE>v</CODE> - mxCell where data are obtained.</DL>