public class mxGdCodec
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static class |
mxGdCodec.mxGDParseState |
Represents the different states in the parse of a file.
|
Modifier and Type | Field | Description |
---|---|---|
protected static java.util.HashMap<java.lang.String,java.lang.Object> |
cellsMap |
Map with the vertex cells added in the addNode method.
|
Constructor | Description |
---|---|
mxGdCodec() |
Modifier and Type | Method | Description |
---|---|---|
static void |
decode(java.lang.String input,
mxGraph graph) |
Parses simple GD format and populate the specified graph
|
static java.lang.String |
encode(mxGraph graph) |
Generates a GD text output with the cells in the graph.
|
protected static java.util.HashMap<java.lang.String,java.lang.Object> cellsMap
public static void decode(java.lang.String input, mxGraph graph)
input
- GD file to be parsedgraph
- Graph where the parsed graph is included.public static java.lang.String encode(mxGraph graph)
graph
- Graph with the cells.Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.