DroidDiagram Programmer's Guide
XmlPersistContext Members
Constructors Fields Methods
 


Contains methods that can help you serialize and deserialize diagram items to and from XML documents.

The following tables list the members exposed by the XmlPersistContext type.

 Public Constructors

  Name Description

XmlPersistContext

Overloaded.  

 Public Fields

  Name Description

LatestFormat

 

 Public Methods

  Name Description

addChildElement

Overloaded.  

getChildElement

 

getClassVersion

 

getDiagram

 

getIncludeUnalteredProperties

Gets whether properties should be saved to XML when they have the default values.

getXmlDocument

 

loadHeaderFromXml

Reads a lane header from the specified XML element.

readAnchorPattern

 

readBool

Overloaded.  

readBrush

 

readByte

 

readChar

 

readColor

Overloaded.  

readDouble

 

readEffect

Overloaded.  

readEnum

Overloaded.  

readFloat

Overloaded.  

readFloatArray

 

readFont

 

readGroup

 

readHashtable

Reads a hash or traits table object with the specified name.

readInt

Overloaded.  

readItemReference

Overloaded.  

readLong

 

readNodeConstraints

 

readObject

 

readPen

Overloaded.  

readPointCollection

 

readPointCoordinates

 

readPointF

 

readRectangleF

 

readShape

Overloaded.  

readShort

Overloaded.  

readSizeF

 

readSizeF

 

readString

Overloaded.  

readStringFormat

Overloaded.  

readStyle

Reads a Style object with the specified name.

readTag

 

readTheme

Reads a Theme object with the specified name.

readThickness

 

saveHeaderToXml

Saves the specified lane header to the underlying document under the specified name.

setIncludeUnalteredProperties

Sets whether properties should be saved to XML when they have the default values.

writeAnchorPattern

Writes the specified anchor pattern.

writeBool

Writes a boolean value with the specified name.

writeBrush

 

writeByte

Write a byte value with the specified name.

writeChar

Write a char value with the specified name.

writeColor

 

writeDouble

Writes a double value with the specified name.

writeEffect

Writes a reference to the specified effect. The effect is registered within the internal hashtable for subsequent serialization.

writeEnum

 

writeFloat

Writes a float value with the specified name.

writeFloatArray

 

writeFont

Overloaded.  

writeGroup

 

writeImage

 

writeInt

Writes an integer value with the specified name.

writeItemReference

Writes a reference to the specified item with the specified name.

writeLong

Writes a long value with the specified name.

writePen

 

writePointCollection

 

writePointCoordinates

 

writePointF

Writes a Point2D with the specified name.

writeRectangleF

Writes a RectF with the specified name.

writeShape

Writes the specified shape with the specified name.

writeShort

Writes a short value with the specified name.

writeSizeF

Writes a Dimension object with the specified name.

writeString

Writes a string value with the specified name.

writeStringFormat

 

writeStyle

Writes a reference to the specified style. The style is registered within the internal hashtable for subsequent serialization.

writeTag

Writes the specified tag of the specified object.

writeTheme

Writes the specified Theme object.

writeThickness

 

writeTraits

 

 See Also

XmlPersistContext Class
com.mindfusion.diagramming Namespace