Codec for mxGraphModels. This class is created and registered dynamically at load time and used implicitely via mxCodec and the mxCodecRegistry. More...
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. |
Codec for mxGraphModels. This class is created and registered dynamically at load time and used implicitely via mxCodec and the mxCodecRegistry.
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.
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.