public static class mxGraphModel.mxRootChange extends mxIGraphModel.mxAtomicGraphModelChange
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
previous
Holds the new and previous root cell.
|
protected java.lang.Object |
root
Holds the new and previous root cell.
|
model
Constructor and Description |
---|
mxRootChange() |
mxRootChange(mxGraphModel model,
java.lang.Object root) |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Changes the root of the model.
|
java.lang.Object |
getPrevious() |
java.lang.Object |
getRoot() |
void |
setPrevious(java.lang.Object value) |
void |
setRoot(java.lang.Object value) |
getModel, setModel
protected java.lang.Object root
protected java.lang.Object previous
public mxRootChange()
public mxRootChange(mxGraphModel model, java.lang.Object root)
public void setRoot(java.lang.Object value)
public java.lang.Object getRoot()
public void setPrevious(java.lang.Object value)
public java.lang.Object getPrevious()
public void execute()
execute
in interface mxUndoableEdit.mxUndoableChange
execute
in class mxIGraphModel.mxAtomicGraphModelChange
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.