mxGraph
Public Member Functions | Protected Attributes | Properties | Events | List of all members
com.mxgraph.mxSharedDiagram Class Reference

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

Public Member Functions

 mxSharedDiagram (string state)
 Constructs a new diagram with the given initial state. More...
 
string GetDelta ()
 Returns the delta of all changes as a string. More...
 
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. More...
 
string ProcessEdit (XmlNode node)
 
void AddDelta (String xml)
 Clears the delta of all changes. More...
 
void ResetDelta ()
 Clears the delta of all changes. More...
 

Protected Attributes

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

Properties

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

Events

mxDiagramChangeEventHandler DiagramChange
 Fires when the diagram was changed. More...
 

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.

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.

string com.mxgraph.mxSharedDiagram.state
protected

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: