|
mxGraph 2.1.0.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mxgraph.io.mxGdCodec
public class mxGdCodec
Parses a GD .txt file and imports it in the given graph.
This class depends from the classes contained in
com.mxgraph.io.gd.
Nested Class Summary | |
---|---|
static class |
mxGdCodec.mxGDParseState
Represents the different states in the parse of a file. |
Field Summary | |
---|---|
protected static HashMap<String,Object> |
cellsMap
Map with the vertex cells added in the addNode method. |
Constructor Summary | |
---|---|
mxGdCodec()
|
Method Summary | |
---|---|
static void |
decode(String input,
mxGraph graph)
Parses simple GD format and populate the specified graph |
static String |
encode(mxGraph graph)
Generates a GD text output with the cells in the graph. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static HashMap<String,Object> cellsMap
Constructor Detail |
---|
public mxGdCodec()
Method Detail |
---|
public static void decode(String input, mxGraph graph)
input
- GD file to be parsedgraph
- Graph where the parsed graph is included.public static String encode(mxGraph graph)
graph
- Graph with the cells.
|
mxGraph 2.1.0.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |