com.mxgraph.model
Class mxGraphModel.mxRootChange
java.lang.Object
   com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
       com.mxgraph.model.mxGraphModel.mxRootChange
com.mxgraph.model.mxGraphModel.mxRootChange
- All Implemented Interfaces: 
- mxUndoableEdit.mxUndoableChange
- Enclosing class:
- mxGraphModel
- public static class mxGraphModel.mxRootChange 
- extends mxIGraphModel.mxAtomicGraphModelChange
| Field Summary | 
| protected  Object | previousHolds the new and previous root cell.
 | 
| protected  Object | rootHolds the new and previous root cell.
 | 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
root
protected Object root
- Holds the new and previous root cell.
 
 
previous
protected Object previous
- Holds the new and previous root cell.
 
 
mxGraphModel.mxRootChange
public mxGraphModel.mxRootChange()
mxGraphModel.mxRootChange
public mxGraphModel.mxRootChange(mxGraphModel model,
                                 Object root)
setRoot
public void setRoot(Object value)
- 
 
getRoot
public Object getRoot()
- 
- Returns:
- the root
 
setPrevious
public void setPrevious(Object value)
- 
 
getPrevious
public Object getPrevious()
- 
- Returns:
- the previous
 
execute
public void execute()
- Changes the root of the model.
 
- 
- Specified by:
- executein interface- mxUndoableEdit.mxUndoableChange
- Specified by:
- executein class- mxIGraphModel.mxAtomicGraphModelChange
 
- 
 
Copyright (c) 2010 Gaudenz Alder. All rights reserved.