com.mxgraph.sharing
Class mxSharedGraphModel
java.lang.Object
   com.mxgraph.util.mxEventSource
com.mxgraph.util.mxEventSource
       com.mxgraph.sharing.mxSharedState
com.mxgraph.sharing.mxSharedState
           com.mxgraph.sharing.mxSharedGraphModel
com.mxgraph.sharing.mxSharedGraphModel
- public class mxSharedGraphModel 
- extends mxSharedState
Implements a diagram that may be shared among multiple sessions.
 
 
 
 
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
model
protected mxGraphModel model
codec
protected mxCodec codec
significantRemoteChanges
protected boolean significantRemoteChanges
- Whether remote changes should be significant in the
 local command history. Default is true.
 
 
mxSharedGraphModel
public mxSharedGraphModel(mxGraphModel model)
- Constructs a new diagram with the given model.
 
- Parameters:
- model- Initial model of the diagram.
 
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 String getState()
- Returns the initial state of the diagram.
 
- 
- Overrides:
- getStatein class- mxSharedState
 
- 
 
addDelta
public void addDelta(String edits)
- 
- Overrides:
- addDeltain class- mxSharedState
 
- 
 
processEdit
protected String processEdit(Node node)
- 
- Overrides:
- processEditin class- mxSharedState
 
- 
 
createUndoableEdit
protected mxUndoableEdit createUndoableEdit(mxIGraphModel.mxAtomicGraphModelChange[] changes)
- Creates a new mxUndoableEdit that implements the notify function to fire
 a change and notify event via the model.
 
- 
 
decodeChanges
protected mxIGraphModel.mxAtomicGraphModelChange[] decodeChanges(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(Object cell)
- Adds removed cells to the codec object lookup for references to the removed
 cells after this point in time.
 
- 
 
Copyright (c) 2010 Gaudenz Alder. All rights reserved.