<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.mxGdCodec</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>mxGdCodec</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 GD .txt file and imports it in the given graph.<br/>
<TD><CODE><B><AHREF="../../../com/mxgraph/io/mxGdCodec.html#decode(com.mxgraph.io.gd.mxGdDocument, com.mxgraph.view.mxGraph)">decode</A></B>(<AHREF="../../../com/mxgraph/io/gd/mxGdDocument.html"title="class in com.mxgraph.io.gd">mxGdDocument</A> document,
<AHREF="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</A> graph)</CODE>
<BR>
Recieves a mxGDDocument document and parses it generating a new graph that is inserted in graph.</TD>
<CODE>static <AHREF="../../../com/mxgraph/io/gd/mxGdDocument.html"title="class in com.mxgraph.io.gd">mxGdDocument</A></CODE></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/io/mxGdCodec.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 GD document with the cells in the graph.</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="../../../com/mxgraph/io/gd/mxGdDocument.html"title="class in com.mxgraph.io.gd">mxGdDocument</A> document,
<AHREF="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</A> graph)</PRE>
<DL>
<DD>Recieves a mxGDDocument document and parses it generating a new graph that is inserted in graph.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>document</CODE> - GD to be parsed<DD><CODE>graph</CODE> - Graph where the parsed graph is included.</DL>
public static <AHREF="../../../com/mxgraph/io/gd/mxGdDocument.html"title="class in com.mxgraph.io.gd">mxGdDocument</A><B>encode</B>(<AHREF="../../../com/mxgraph/view/mxGraph.html"title="class in com.mxgraph.view">mxGraph</A> graph)</PRE>
<DL>
<DD>Generates a GD document with the cells in the graph.
The actual implementation only uses the cells located in the first level.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>graph</CODE> - Graph with the cells.