mxGraph 1.10.3.0


com.mxgraph.io
Class mxGdCodec

java.lang.Object
  extended by com.mxgraph.io.mxGdCodec

public class mxGdCodec
extends Object

Parses a GD .txt file and imports it in the given graph.
This class depends from the classes contained in com.mxgraph.io.gd.


Constructor Summary
mxGdCodec()
           
 
Method Summary
static void decode(mxGdDocument document, mxGraph graph)
          Recieves a mxGDDocument document and parses it generating a new graph that is inserted in graph.
static mxGdDocument encode(mxGraph graph)
          Generates a GD document with the cells in the graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

mxGdCodec

public mxGdCodec()
Method Detail

decode

public static void decode(mxGdDocument document,
                          mxGraph graph)
Recieves a mxGDDocument document and parses it generating a new graph that is inserted in graph.

Parameters:
document - GD to be parsed
graph - Graph where the parsed graph is included.

encode

public static mxGdDocument encode(mxGraph graph)
Generates a GD document with the cells in the graph. The actual implementation only uses the cells located in the first level.

Parameters:
graph - Graph with the cells.
Returns:
The GD document generated.

mxGraph 1.10.3.0


Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.