com::mxgraph::mxModelCodec Class Reference

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

Inheritance diagram for com::mxgraph::mxModelCodec:
com::mxgraph::mxObjectCodec

List of all members.

Public Member Functions

 mxModelCodec ()
 Constructs a new model codec.
 mxModelCodec (Object template)
 Constructs a new model codec for the given template.
 mxModelCodec (Object template, String[] exclude, String[] idrefs, Dictionary< string, string > mapping)
 Constructs a new model codec for the given arguments.
override XmlNode BeforeDecode (mxCodec dec, XmlNode node, Object into)
 Reads the cells into the graph model. All cells are children of the root element in the node.

Protected Member Functions

override void EncodeObject (mxCodec enc, Object obj, XmlNode 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.

Detailed Description

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


Constructor & Destructor Documentation

com::mxgraph::mxModelCodec::mxModelCodec (  )  [inline]

Constructs a new model codec.

com::mxgraph::mxModelCodec::mxModelCodec ( Object  template  )  [inline]

Constructs a new model codec for the given template.

com::mxgraph::mxModelCodec::mxModelCodec ( Object  template,
String[]  exclude,
String[]  idrefs,
Dictionary< string, string >  mapping 
) [inline]

Constructs a new model codec for the given arguments.


Member Function Documentation

override XmlNode com::mxgraph::mxModelCodec::BeforeDecode ( mxCodec  dec,
XmlNode  node,
Object  into 
) [inline, virtual]

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

Reimplemented from com::mxgraph::mxObjectCodec.

override void com::mxgraph::mxModelCodec::EncodeObject ( mxCodec  enc,
Object  obj,
XmlNode  node 
) [inline, protected, virtual]

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.

Reimplemented from com::mxgraph::mxObjectCodec.


The documentation for this class was generated from the following file:
Generated on Fri May 25 10:15:53 2012 for mxGraph by  doxygen 1.6.3