Package com.mxgraph.model
Class mxGraphModel.mxRootChange
java.lang.Object
com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
com.mxgraph.model.mxGraphModel.mxRootChange
- All Implemented Interfaces:
mxUndoableEdit.mxUndoableChange
- Enclosing class:
mxGraphModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Object
Holds the new and previous root cell.protected Object
Holds the new and previous root cell.Fields inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
model
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Changes the root of the model.getRoot()
void
setPrevious
(Object value) void
Methods inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
getModel, setModel
-
Field Details
-
root
Holds the new and previous root cell. -
previous
Holds the new and previous root cell.
-
-
Constructor Details
-
mxRootChange
public mxRootChange() -
mxRootChange
-
-
Method Details
-
setRoot
-
getRoot
- Returns:
- the root
-
setPrevious
-
getPrevious
- Returns:
- the previous
-
execute
public void execute()Changes the root of the model.- Specified by:
execute
in interfacemxUndoableEdit.mxUndoableChange
- Specified by:
execute
in classmxIGraphModel.mxAtomicGraphModelChange
-