Class mxSharedGraphModel


  • public class mxSharedGraphModel
    extends mxSharedState
    Implements a diagram that may be shared among multiple sessions.
    • Field Detail

      • significantRemoteChanges

        protected boolean significantRemoteChanges
        Whether remote changes should be significant in the local command history. Default is true.
    • Constructor Detail

      • mxSharedGraphModel

        public mxSharedGraphModel​(mxGraphModel model)
        Constructs a new diagram with the given model.
        Parameters:
        model - Initial model of the diagram.
    • Method Detail

      • getModel

        public mxGraphModel getModel()
        Returns:
        the model
      • isSignificantRemoteChanges

        public boolean isSignificantRemoteChanges()
        Returns:
        the significantRemoteChanges
      • setSignificantRemoteChanges

        public void setSignificantRemoteChanges​(boolean significantRemoteChanges)
        Parameters:
        significantRemoteChanges - the significantRemoteChanges to set
      • getState

        public java.lang.String getState()
        Returns the initial state of the diagram.
        Overrides:
        getState in class mxSharedState
      • addDelta

        public void addDelta​(java.lang.String edits)
        Overrides:
        addDelta in class mxSharedState
      • processEdit

        protected java.lang.String processEdit​(org.w3c.dom.Node node)
        Overrides:
        processEdit in class mxSharedState
      • decodeChanges

        protected mxIGraphModel.mxAtomicGraphModelChange[] decodeChanges​(org.w3c.dom.Node node)
        Adds removed cells to the codec object lookup for references to the removed cells after this point in time.
      • cellRemoved

        public void cellRemoved​(java.lang.Object cell)
        Adds removed cells to the codec object lookup for references to the removed cells after this point in time.