com.mxgraph.io
public class mxGdCodec extends Object
Constructor and Description |
---|
mxGdCodec() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static void decode(mxGdDocument document, mxGraph graph)
document
- GD to be parsedgraph
- Graph where the parsed graph is included.public static mxGdDocument encode(mxGraph graph)
graph
- Graph with the cells.Copyright (c) 2010 Gaudenz Alder. All rights reserved.