mxGraph
Public Member Functions | Protected Attributes | Properties | Events
com.mxgraph.mxSharedDiagram Class Reference

Implements a diagram that may be shared among multiple sessions. More...

List of all members.

Public Member Functions

 mxSharedDiagram (string state)
 Constructs a new diagram with the given initial state.
string GetDelta ()
 Returns the delta of all changes as a string.
void ProcessDelta (Object sender, XmlNode delta)
 Appends the given string to the history and dispatches the change to all sessions that are listening to this shared diagram.
string ProcessEdit (XmlNode node)
void AddDelta (String xml)
 Clears the delta of all changes.
void ResetDelta ()
 Clears the delta of all changes.

Protected Attributes

string state
 Holds the initial state of the diagram.
StringBuilder delta = new StringBuilder()
 Holds the delta of all changes of initial state.

Properties

string State [get]
 Returns the initial state of the diagram.

Events

mxDiagramChangeEventHandler DiagramChange
 Fires when the diagram was changed.

Detailed Description

Implements a diagram that may be shared among multiple sessions.


Constructor & Destructor Documentation

com.mxgraph.mxSharedDiagram.mxSharedDiagram ( string  state) [inline]

Constructs a new diagram with the given initial state.

Parameters:
stateInitial state of the diagram.

Member Function Documentation

void com.mxgraph.mxSharedDiagram.AddDelta ( String  xml) [inline]

Clears the delta of all changes.

Returns the delta of all changes as a string.

void com.mxgraph.mxSharedDiagram.ProcessDelta ( Object  sender,
XmlNode  delta 
) [inline]

Appends the given string to the history and dispatches the change to all sessions that are listening to this shared diagram.

Parameters:
sender
delta
string com.mxgraph.mxSharedDiagram.ProcessEdit ( XmlNode  node) [inline]
Parameters:
node
Returns:

Clears the delta of all changes.


Member Data Documentation

StringBuilder com.mxgraph.mxSharedDiagram.delta = new StringBuilder() [protected]

Holds the delta of all changes of initial state.

Holds the initial state of the diagram.


Property Documentation

Returns the initial state of the diagram.


Event Documentation

Fires when the diagram was changed.


The documentation for this class was generated from the following file: