<li><ahref="../../../com/mxgraph/sharing/mxSharedGraphModel.html"title="class in com.mxgraph.sharing"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../com/mxgraph/sharing/mxSharedState.mxDiagramChangeListener.html"title="interface in com.mxgraph.sharing"><spanclass="strong">Next Class</span></a></li>
<li><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ulclass="inheritance">
<li><ahref="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">com.mxgraph.util.mxEventSource</a></li>
<li>
<ulclass="inheritance">
<li>com.mxgraph.sharing.mxSharedState</li>
</ul>
</li>
</ul>
</li>
</ul>
<divclass="description">
<ulclass="blockList">
<liclass="blockList">
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><ahref="../../../com/mxgraph/sharing/mxSharedGraphModel.html"title="class in com.mxgraph.sharing">mxSharedGraphModel</a></dd>
</dl>
<hr>
<br>
<pre>public class <spanclass="strong">mxSharedState</span>
extends <ahref="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">mxEventSource</a></pre>
<divclass="block">Implements a diagram that may be shared among multiple sessions. This
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/sharing/mxSharedState.mxDiagramChangeListener.html"title="interface in com.mxgraph.sharing">mxSharedState.mxDiagramChangeListener</a></strong></code>
<divclass="block">Defines the requirements for an object that listens to changes on the
<h3>Nested classes/interfaces inherited from class com.mxgraph.util.<ahref="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">mxEventSource</a></h3>
<code><ahref="../../../com/mxgraph/util/mxEventSource.mxIEventListener.html"title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</a></code></li>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Field and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/StringBuffer.html?is-external=true"title="class or interface in java.lang">StringBuffer</a></code></td>
<divclass="block">Holds the history of all changes of initial state.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true"title="class or interface in java.util">List</a><<ahref="../../../com/mxgraph/sharing/mxSharedState.mxDiagramChangeListener.html"title="interface in com.mxgraph.sharing">mxSharedState.mxDiagramChangeListener</a>></code></td>
<divclass="block">Holds a list of diagram change listeners.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a></code></td>
<h3>Fields inherited from class com.mxgraph.util.<ahref="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">mxEventSource</a></h3>
<thclass="colOne"scope="col">Constructor and Description</th>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><strong><ahref="../../../com/mxgraph/sharing/mxSharedState.html#mxSharedState(java.lang.String)">mxSharedState</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> state)</code>
<divclass="block">Constructs a new diagram with the given state.</div>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/sharing/mxSharedState.html#addDelta(java.lang.String)">addDelta</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> xml)</code> </td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/sharing/mxSharedState.html#addDiagramChangeListener(com.mxgraph.sharing.mxSharedState.mxDiagramChangeListener)">addDiagramChangeListener</a></strong>(<ahref="../../../com/mxgraph/sharing/mxSharedState.mxDiagramChangeListener.html"title="interface in com.mxgraph.sharing">mxSharedState.mxDiagramChangeListener</a> listener)</code>
<divclass="block">Adds the given listener to the list of diagram change listeners.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a></code></td>
<divclass="block">Returns the history of all changes as a string.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a></code></td>
<divclass="block">Returns the initial state of the diagram.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/sharing/mxSharedState.html#processDelta(java.lang.Object, org.w3c.dom.Node)">processDelta</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> sender,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/Node.html?is-external=true"title="class or interface in org.w3c.dom">Node</a> delta)</code>
<divclass="block">Appends the given string to the history and dispatches the change to all
sessions that are listening to this shared diagram.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a></code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/sharing/mxSharedState.html#processEdit(org.w3c.dom.Node)">processEdit</a></strong>(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/Node.html?is-external=true"title="class or interface in org.w3c.dom">Node</a> node)</code> </td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../com/mxgraph/sharing/mxSharedState.html#removeDiagramChangeListener(com.mxgraph.sharing.mxSharedState.mxDiagramChangeListener)">removeDiagramChangeListener</a></strong>(<ahref="../../../com/mxgraph/sharing/mxSharedState.mxDiagramChangeListener.html"title="interface in com.mxgraph.sharing">mxSharedState.mxDiagramChangeListener</a> listener)</code>
<divclass="block">Removes the given listener from the list of diagram change listeners.</div>
<h3>Methods inherited from class com.mxgraph.util.<ahref="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">mxEventSource</a></h3>
<h3>Methods inherited from class java.lang.<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a></h3>
<code><ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#clone()"title="class or interface in java.lang">clone</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)"title="class or interface in java.lang">equals</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#finalize()"title="class or interface in java.lang">finalize</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#getClass()"title="class or interface in java.lang">getClass</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#hashCode()"title="class or interface in java.lang">hashCode</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notify()"title="class or interface in java.lang">notify</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#notifyAll()"title="class or interface in java.lang">notifyAll</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#toString()"title="class or interface in java.lang">toString</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait()"title="class or interface in java.lang">wait</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long)"title="class or interface in java.lang">wait</a>, <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true#wait(long, int)"title="class or interface in java.lang">wait</a></code></li>
<pre>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/util/List.html?is-external=true"title="class or interface in java.util">List</a><<ahref="../../../com/mxgraph/sharing/mxSharedState.mxDiagramChangeListener.html"title="interface in com.mxgraph.sharing">mxSharedState.mxDiagramChangeListener</a>> diagramChangeListeners</pre>
<divclass="block">Holds a list of diagram change listeners.</div>
</li>
</ul>
<aname="state">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>state</h4>
<pre>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> state</pre>
<divclass="block">Holds the initial state of the diagram.</div>
</li>
</ul>
<aname="delta">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>delta</h4>
<pre>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/StringBuffer.html?is-external=true"title="class or interface in java.lang">StringBuffer</a> delta</pre>
<divclass="block">Holds the history of all changes of initial state.</div>
<pre>public mxSharedState(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> state)</pre>
<divclass="block">Constructs a new diagram with the given state.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>state</code> - Initial state of the diagram.</dd></dl>
<pre>public <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> getState()</pre>
<divclass="block">Returns the initial state of the diagram.</div>
</li>
</ul>
<aname="getDelta()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getDelta</h4>
<pre>public <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> getDelta()</pre>
<divclass="block">Returns the history of all changes as a string.</div>
<pre>public void processDelta(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Object.html?is-external=true"title="class or interface in java.lang">Object</a> sender,
<ahref="http://download.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/Node.html?is-external=true"title="class or interface in org.w3c.dom">Node</a> delta)</pre>
<divclass="block">Appends the given string to the history and dispatches the change to all
sessions that are listening to this shared diagram.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>sender</code> - Session where the change originated from.</dd><dd><code>delta</code> - XML that represents the change.</dd></dl>
</li>
</ul>
<aname="processEdit(org.w3c.dom.Node)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>processEdit</h4>
<pre>protected <ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> processEdit(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/org/w3c/dom/Node.html?is-external=true"title="class or interface in org.w3c.dom">Node</a> node)</pre>
</li>
</ul>
<aname="addDelta(java.lang.String)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>addDelta</h4>
<pre>public void addDelta(<ahref="http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html?is-external=true"title="class or interface in java.lang">String</a> xml)</pre>
</li>
</ul>
<aname="resetDelta()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>resetDelta</h4>
<pre>public void resetDelta()</pre>
<divclass="block">Clears the history of all changes.</div>
<pre>public void addDiagramChangeListener(<ahref="../../../com/mxgraph/sharing/mxSharedState.mxDiagramChangeListener.html"title="interface in com.mxgraph.sharing">mxSharedState.mxDiagramChangeListener</a> listener)</pre>
<divclass="block">Adds the given listener to the list of diagram change listeners.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>listener</code> - Diagram change listener to be added.</dd></dl>
<pre>public void removeDiagramChangeListener(<ahref="../../../com/mxgraph/sharing/mxSharedState.mxDiagramChangeListener.html"title="interface in com.mxgraph.sharing">mxSharedState.mxDiagramChangeListener</a> listener)</pre>
<divclass="block">Removes the given listener from the list of diagram change listeners.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>listener</code> - Diagram change listener to be removed.</dd></dl>
<li><ahref="../../../com/mxgraph/sharing/mxSharedGraphModel.html"title="class in com.mxgraph.sharing"><spanclass="strong">Prev Class</span></a></li>
<li><ahref="../../../com/mxgraph/sharing/mxSharedState.mxDiagramChangeListener.html"title="interface in com.mxgraph.sharing"><spanclass="strong">Next Class</span></a></li>