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 ObjectHolds the new and previous root cell.protected ObjectHolds the new and previous root cell.Fields inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
model -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Changes the root of the model.getRoot()voidsetPrevious(Object value) voidMethods 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:
executein interfacemxUndoableEdit.mxUndoableChange- Specified by:
executein classmxIGraphModel.mxAtomicGraphModelChange
-