Codec for mxGraphModels. This class is created and registered dynamically at load time and used implicitely via mxCodec and the mxCodecRegistry.
mxModelCodec | Codec for mxGraphModels. |
Functions | |
encodeObject | Encodes the given mxGraphModel by writing a (flat) XML sequence of cell nodes as produced by the mxCellCodec. |
decodeChild | Overrides decode child to handle special child nodes. |
decodeRoot | Reads the cells into the graph model. |
codec.encodeObject = function( enc, obj, node )
Encodes the given mxGraphModel by writing a (flat) XML sequence of cell nodes as produced by the mxCellCodec. The sequence is wrapped-up in a node with the name root.
Encodes the given mxGraphModel by writing a (flat) XML sequence of cell nodes as produced by the mxCellCodec.
codec.encodeObject = function( enc, obj, node )
Overrides decode child to handle special child nodes.
codec.decodeChild = function( dec, child, obj )
Reads the cells into the graph model.
codec.decodeRoot = function( dec, root, model )