Uses of Class
com.mxgraph.io.mxCodec
Packages that use mxCodec
-
Uses of mxCodec in com.mxgraph.io
Methods in com.mxgraph.io with parameters of type mxCodecModifier and TypeMethodDescriptionmxChildChangeCodec.afterDecode
(mxCodec dec, Node node, Object obj) mxGenericChangeCodec.afterDecode
(mxCodec dec, Node node, Object obj) mxObjectCodec.afterDecode
(mxCodec dec, Node node, Object obj) Hook for subclassers to post-process the object after decoding.mxRootChangeCodec.afterDecode
(mxCodec dec, Node node, Object obj) mxTerminalChangeCodec.afterDecode
(mxCodec dec, Node node, Object obj) mxCellCodec.afterEncode
(mxCodec enc, Object obj, Node node) Encodes an mxCell and wraps the XML up inside the XML of the user object (inversion).mxChildChangeCodec.afterEncode
(mxCodec enc, Object obj, Node node) mxObjectCodec.afterEncode
(mxCodec enc, Object obj, Node node) Hook for subclassers to post-process the node for the given object after encoding and return the post-processed node.mxRootChangeCodec.afterEncode
(mxCodec enc, Object obj, Node node) mxCellCodec.beforeDecode
(mxCodec dec, Node node, Object obj) Decodes an mxCell and uses the enclosing XML node as the user object for the cell (inversion).mxChildChangeCodec.beforeDecode
(mxCodec dec, Node node, Object into) Reads the cells into the graph model.mxModelCodec.beforeDecode
(mxCodec dec, Node node, Object into) Reads the cells into the graph model.mxObjectCodec.beforeDecode
(mxCodec dec, Node node, Object obj) Hook for subclassers to pre-process the node for the specified object and return the node to be used for further processing bymxObjectCodec.decode(mxCodec, Node)
.mxRootChangeCodec.beforeDecode
(mxCodec dec, Node node, Object into) Reads the cells into the graph model.mxObjectCodec.beforeEncode
(mxCodec enc, Object obj, Node node) Hook for subclassers to pre-process the object before encoding.Parses the given node into the object or returns a new object representing the given node.Parses the given node into the object or returns a new object representing the given node.Decodes the given mxStylesheet.protected void
mxObjectCodec.decodeAttribute
(mxCodec dec, Node attr, Object obj) Reads the given attribute into the specified object.protected void
mxObjectCodec.decodeAttributes
(mxCodec dec, Node node, Object obj) Decodes all attributes of the given node using decodeAttribute.protected void
mxObjectCodec.decodeChild
(mxCodec dec, Node child, Object obj) Reads the specified child into the given object.protected void
mxObjectCodec.decodeChildren
(mxCodec dec, Node node, Object obj) Decodec all children of the given node using decodeChild.protected void
mxObjectCodec.decodeNode
(mxCodec dec, Node node, Object obj) Calls decodeAttributes and decodeChildren for the given node.Encodes the specified object and returns a node representing then given object.Encodes the given mxStylesheet.protected void
mxObjectCodec.encodeElements
(mxCodec enc, Object obj, Node node) Encodes the child objects of arrays, maps and collections.protected void
mxObjectCodec.encodeFields
(mxCodec enc, Object obj, Node node) Encodes the declared fields of the given object into the given node.protected void
mxModelCodec.encodeObject
(mxCodec enc, Object obj, Node node) Encodes the given mxGraphModel by writing a (flat) XML sequence of cell nodes as produced by the mxCellCodec.protected void
mxObjectCodec.encodeObject
(mxCodec enc, Object obj, Node node) Encodes the value of each member in then given obj into the given node usingmxObjectCodec.encodeFields(mxCodec, Object, Node)
andmxObjectCodec.encodeElements(mxCodec, Object, Node)
.protected void
Converts the given value according to the mappings and id-refs in this codec and usesmxObjectCodec.writeAttribute(mxCodec, Object, String, Object, Node)
to write the attribute into the given node.boolean
mxObjectCodec.processInclude
(mxCodec dec, Node node, Object into) Returns true if the given node is an include directive and executes the include by decoding the XML document.protected void
Writes the given value into node using writePrimitiveAttribute or writeComplexAttribute depending on the type of the value.protected void
Writes the given value as a child node of the given node.protected void
mxObjectCodec.writePrimitiveAttribute
(mxCodec enc, Object obj, String attr, Object value, Node node) Writes the given value as an attribute of the given node.