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