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:
state Initial state of the diagram.

Member Function Documentation

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

Clears the delta of all changes.

string com::mxgraph::mxSharedDiagram::GetDelta (  )  [inline]

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:
void com::mxgraph::mxSharedDiagram::ResetDelta (  )  [inline]

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

string com::mxgraph::mxSharedDiagram::State [get]

Returns the initial state of the diagram.


Event Documentation

mxDiagramChangeEventHandler com::mxgraph::mxSharedDiagram::DiagramChange

Fires when the diagram was changed.


The documentation for this class was generated from the following file:
Generated on Thu Feb 21 15:48:43 2013 for mxGraph by  doxygen 1.6.3