<AHREF="../../../com/mxgraph/sharing/mxSharedGraphModel.html"title="class in com.mxgraph.sharing"><B>PREV CLASS</B></A>
<AHREF="../../../com/mxgraph/sharing/mxSharedState.mxDiagramChangeListener.html"title="interface in com.mxgraph.sharing"><B>NEXT CLASS</B></A></FONT></TD>
<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>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><AHREF="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">com.mxgraph.util.mxEventSource</A>
<IMGSRC="../../../resources/inherit.gif"ALT="extended by "><B>com.mxgraph.sharing.mxSharedState</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B><DD><AHREF="../../../com/mxgraph/sharing/mxSharedGraphModel.html"title="class in com.mxgraph.sharing">mxSharedGraphModel</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public class <B>mxSharedState</B><DT>extends <AHREF="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">mxEventSource</A></DL>
</PRE>
<P>
Implements a diagram that may be shared among multiple sessions. This
implementation is based only on string, it does not have a model instance.
The diagram is represented by its initial state and the sequence of edits
<TD><CODE><B><AHREF="../../../com/mxgraph/sharing/mxSharedState.mxDiagramChangeListener.html"title="interface in com.mxgraph.sharing">mxSharedState.mxDiagramChangeListener</A></B></CODE>
<BR>
Defines the requirements for an object that listens to changes on the
<THALIGN="left"><B>Nested classes/interfaces inherited from class com.mxgraph.util.<AHREF="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">mxEventSource</A></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><CODE><AHREF="../../../com/mxgraph/util/mxEventSource.mxIEventListener.html"title="interface in com.mxgraph.util">mxEventSource.mxIEventListener</A></CODE></TD>
<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></FONT></TD>
<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></FONT></TD>
<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></FONT></TD>
<THALIGN="left"><B>Fields inherited from class com.mxgraph.util.<AHREF="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">mxEventSource</A></B></TH>
<TD><CODE><B><AHREF="../../../com/mxgraph/sharing/mxSharedState.html#mxSharedState(java.lang.String)">mxSharedState</A></B>(<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>
<BR>
Constructs a new diagram with the given state.</TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/sharing/mxSharedState.html#addDelta(java.lang.String)">addDelta</A></B>(<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><CODE><B><AHREF="../../../com/mxgraph/sharing/mxSharedState.html#addDiagramChangeListener(com.mxgraph.sharing.mxSharedState.mxDiagramChangeListener)">addDiagramChangeListener</A></B>(<AHREF="../../../com/mxgraph/sharing/mxSharedState.mxDiagramChangeListener.html"title="interface in com.mxgraph.sharing">mxSharedState.mxDiagramChangeListener</A> listener)</CODE>
<BR>
Adds the given listener to the list of diagram change listeners.</TD>
<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></FONT></TD>
<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></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/sharing/mxSharedState.html#processDelta(java.lang.Object, org.w3c.dom.Node)">processDelta</A></B>(<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>
<BR>
Appends the given string to the history and dispatches the change to all
sessions that are listening to this shared diagram.</TD>
<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></FONT></TD>
<TD><CODE><B><AHREF="../../../com/mxgraph/sharing/mxSharedState.html#processEdit(org.w3c.dom.Node)">processEdit</A></B>(<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><CODE><B><AHREF="../../../com/mxgraph/sharing/mxSharedState.html#removeDiagramChangeListener(com.mxgraph.sharing.mxSharedState.mxDiagramChangeListener)">removeDiagramChangeListener</A></B>(<AHREF="../../../com/mxgraph/sharing/mxSharedState.mxDiagramChangeListener.html"title="interface in com.mxgraph.sharing">mxSharedState.mxDiagramChangeListener</A> listener)</CODE>
<BR>
Removes the given listener from the list of diagram change listeners.</TD>
<THALIGN="left"><B>Methods inherited from class com.mxgraph.util.<AHREF="../../../com/mxgraph/util/mxEventSource.html"title="class in com.mxgraph.util">mxEventSource</A></B></TH>
<THALIGN="left"><B>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></B></TH>
</TR>
<TRBGCOLOR="white"CLASS="TableRowColor">
<TD><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></TD>
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>><B>diagramChangeListeners</B></PRE>
<DL>
<DD>Holds a list of diagram change listeners.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="state"><!----></A><H3>
state</H3>
<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><B>state</B></PRE>
<DL>
<DD>Holds the initial state of the diagram.
<P>
<DL>
</DL>
</DL>
<HR>
<ANAME="delta"><!----></A><H3>
delta</H3>
<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><B>delta</B></PRE>
<DL>
<DD>Holds the history of all changes of initial state.
public <B>mxSharedState</B>(<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>
<DL>
<DD>Constructs a new diagram with the given state.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>state</CODE> - Initial state of the diagram.</DL>
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><B>getState</B>()</PRE>
<DL>
<DD>Returns the initial state of the diagram.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<ANAME="getDelta()"><!----></A><H3>
getDelta</H3>
<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><B>getDelta</B>()</PRE>
<DL>
<DD>Returns the history of all changes as a string.
public void <B>processDelta</B>(<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>
<DL>
<DD>Appends the given string to the history and dispatches the change to all
sessions that are listening to this shared diagram.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>sender</CODE> - Session where the change originated from.<DD><CODE>delta</CODE> - XML that represents the change.</DL>
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><B>processEdit</B>(<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>
public void <B>addDelta</B>(<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>
public void <B>addDiagramChangeListener</B>(<AHREF="../../../com/mxgraph/sharing/mxSharedState.mxDiagramChangeListener.html"title="interface in com.mxgraph.sharing">mxSharedState.mxDiagramChangeListener</A> listener)</PRE>
<DL>
<DD>Adds the given listener to the list of diagram change listeners.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - Diagram change listener to be added.</DL>
public void <B>removeDiagramChangeListener</B>(<AHREF="../../../com/mxgraph/sharing/mxSharedState.mxDiagramChangeListener.html"title="interface in com.mxgraph.sharing">mxSharedState.mxDiagramChangeListener</A> listener)</PRE>
<DL>
<DD>Removes the given listener from the list of diagram change listeners.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>listener</CODE> - Diagram change listener to be removed.</DL>
<AHREF="../../../com/mxgraph/sharing/mxSharedGraphModel.html"title="class in com.mxgraph.sharing"><B>PREV CLASS</B></A>
<AHREF="../../../com/mxgraph/sharing/mxSharedState.mxDiagramChangeListener.html"title="interface in com.mxgraph.sharing"><B>NEXT CLASS</B></A></FONT></TD>