mxModelCodec

Codec for mxGraphModels.  This class is created and registered dynamically at load time and used implicitly via mxCodec and the mxCodecRegistry.

Summary
mxModelCodecCodec for mxGraphModels.
Functions
encodeObjectEncodes the given mxGraphModel by writing a (flat) XML sequence of cell nodes as produced by the mxCellCodec.
decodeChildOverrides decode child to handle special child nodes.
decodeRootReads the cells into the graph model.

Functions

encodeObject

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.

decodeChild

codec.decodeChild = function(dec,
child,
obj)

Overrides decode child to handle special child nodes.

decodeRoot

codec.decodeRoot = function(dec,
root,
model)

Reads the cells into the graph model.  All cells are children of the root element in the node.

Extends mxEventSource to implement a 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.
Codec for mxCells.
codec.decodeChild = function(dec,
child,
obj)
Overrides decode child to handle special child nodes.
codec.decodeRoot = function(dec,
root,
model)
Reads the cells into the graph model.
XML codec for JavaScript object graphs.
Singleton class that acts as a global registry for codecs.
Close