MindFusion.Java Package Programmer's Guide
JsonPersistContext Members
Constructors Fields Methods
 


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

 Public Constructors

  Name Description

JsonPersistContext

Overloaded.  

 Public Fields

  Name Description

LatestFormat

 

 Protected Fields

  Name Description

brushes

  (Inherited from JsonContext.)

inplaceImages

  (Inherited from JsonContext.)

inplaceResources

  (Inherited from JsonContext.)

 Public Methods

  Name Description

getDiagram

 

getFileVersion

 

getItemProperties

 

loadItem

Reads a diagram item from the specified JsonObject.

parse

Deserializes the specified JSON formatted string to a JsonObject. (Inherited from JsonContext.)

readAnchorPattern

Reads an AnchorPattern object.

readBrush

Overloaded.   (Inherited from JsonContext.)

readBrushColor

Reads a Brush object with the specified color. (Inherited from JsonContext.)

readBrushes

Reads all brushes. (Inherited from JsonContext.)

readColor

Overloaded.   (Inherited from JsonContext.)

readComposite

Reads the properties of a CompositeNode, which are marked with the AutoJson attribute.

readEffect

Reads a NodeEffect object.

readEnum

Reads an enum value. (Inherited from JsonContext.)

readFile

Reads json file (Inherited from JsonContext.)

readFont

 

readImage

Reads an Image object. (Inherited from JsonContext.)

readImages

Reads all images. (Inherited from JsonContext.)

readItemId

Reads an item reference.

readObject

  (Inherited from JsonContext.)

readPen

Overloaded.   (Inherited from JsonContext.)

readPointF

Reads a Point2D.Float object. (Inherited from JsonContext.)

readPointString

Reads a list of points. (Inherited from JsonContext.)

readRectangleF

Reads a Rectangle2D.Float object. (Inherited from JsonContext.)

readShape

Reads a Shape object.

readSizeF

read the SizeF object (Inherited from JsonContext.)

readStringFormat

Reads a StringFormat object. (Inherited from JsonContext.)

readStyle

Reads a Style object.

readSvg

Read SVG object.

readTag

Reads the specified tag for the specified object. Tags are read similarly to arbitrary objects except that the client of the diagram is given a chance to perform custom deserialization through event handling.

readTheme

Reads a Theme object.

readThickness

Reads a Thickness object.

saveItem

Saves the specified diagram item to a JsonObject.

serialize

Serializes the specified JsonObject to a JSON formatted string. (Inherited from JsonContext.)

setItemProperties

 

writeAnchorPattern

Writes an AnchorPattern object.

writeBrush

Writes a MindFusion.Drawing.Brush object. (Inherited from JsonContext.)

writeBrushColor

Writes the color of the specified brush. (Inherited from JsonContext.)

writeBrushes

Writes all currently accumulated brushes. (Inherited from JsonContext.)

writeColor

Writes a Color object. (Inherited from JsonContext.)

writeComposite

Writes the properties of a CompositeNode, which are marked with the AutoJson attribute.

writeEffect

Writes a NodeEffect object.

writeEnum

Writes an enum value. (Inherited from JsonContext.)

writeFile

Writes serialized json to file. (Inherited from JsonContext.)

writeFont

 

writeImage

Writes an Image object. (Inherited from JsonContext.)

writeImages

Writes all currently accumulated images. (Inherited from JsonContext.)

writeItemId

Writes a reference to the specified item.

writeItemType

 

writeObject

  (Inherited from JsonContext.)

writePen

Writes a MindFusion.Drawing.Pen object. (Inherited from JsonContext.)

writePointF

Writes a PointF object. (Inherited from JsonContext.)

writePointString

Writes a Point string. (Inherited from JsonContext.)

writeRectangleF

Writes a RectangleF object. (Inherited from JsonContext.)

writeShape

Writes a Shape object.

writeSizeF

Writes a sizeF object (Inherited from JsonContext.)

writeStringFormat

Writes a StringFormat object. (Inherited from JsonContext.)

writeStyle

Writes a Style object.

writeSvg

 

writeTag

Writes the specified tag of the specified object. Tags are written similarly to arbitrary objects except that the client of the diagram is given a chance to perform custom serialization through event handling.

writeTheme

Writes a Theme object.

writeThickness

Writes a Thickness object.

 Protected Methods

  Name Description

Base64Decode

  (Inherited from JsonContext.)

base64Encode

  (Inherited from JsonContext.)

toCamelCase

  (Inherited from JsonContext.)

toPascalCase

  (Inherited from JsonContext.)

 See Also

JsonPersistContext Class
com.mindfusion.diagramming Namespace