com.mxgraph.io
public class mxModelCodec extends mxObjectCodec
Constructor and Description |
---|
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,
Map<String,String> mapping)
Constructs a new model codec for the given arguments.
|
Modifier and Type | Method and Description |
---|---|
Node |
beforeDecode(mxCodec dec,
Node node,
Object into)
Reads the cells into the graph model.
|
Node |
encode(mxCodec enc,
Object obj)
Encode the given mxGraphModel by writing a (flat) XML sequence
of cell nodes as produced by the mxCellCodec.
|
afterDecode, afterEncode, beforeEncode, cloneTemplate, convertValueFromXml, convertValueToXml, decode, decode, decodeAttribute, decodeAttributes, decodeChild, decodeChildren, decodeNode, encodeElements, encodeFields, encodeObject, encodeValue, getAccessor, getAttributeName, getField, getFieldName, getFieldValue, getMethod, getName, getTemplate, isExcluded, isPrimitiveValue, isReference, processInclude, setFieldValue, writeAttribute, writeComplexAttribute, writePrimitiveAttribute
public mxModelCodec()
public mxModelCodec(Object template)
public Node encode(mxCodec enc, Object obj)
encode
in class mxObjectCodec
enc
- Codec that controls the encoding process.obj
- Object to be encoded.public Node beforeDecode(mxCodec dec, Node node, Object into)
beforeDecode
in class mxObjectCodec
dec
- Codec that controls the decoding process.node
- XML node to be decoded.into
- Object to encode the node into.Copyright (c) 2010 Gaudenz Alder. All rights reserved.