com.mxgraph.model
Class mxGraphModel.mxChildChange
java.lang.Object
com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
com.mxgraph.model.mxGraphModel.mxChildChange
- All Implemented Interfaces:
- mxUndoableEdit.mxUndoableChange
- Enclosing class:
- mxGraphModel
public static class mxGraphModel.mxChildChange
- extends mxIGraphModel.mxAtomicGraphModelChange
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parent
protected mxICell parent
previous
protected mxICell previous
child
protected mxICell child
index
protected int index
previousIndex
protected int previousIndex
isAdded
protected boolean isAdded
mxGraphModel.mxChildChange
public mxGraphModel.mxChildChange(mxGraphModel model,
mxICell parent,
mxICell child)
mxGraphModel.mxChildChange
public mxGraphModel.mxChildChange(mxGraphModel model,
mxICell parent,
mxICell child,
int index)
getParent
public mxICell getParent()
- Returns:
- the parent
getPrevious
public mxICell getPrevious()
- Returns:
- the previous
getChild
public mxICell getChild()
- Returns:
- the child
getIndex
public int getIndex()
- Returns:
- the index
getPreviousIndex
public int getPreviousIndex()
- Returns:
- the previousIndex
isAdded
public boolean isAdded()
- Returns:
- the isAdded
connect
protected void connect(mxICell cell,
boolean isConnect)
execute
public void execute()
- Changes the root of the model.
- Specified by:
execute
in interface mxUndoableEdit.mxUndoableChange
- Specified by:
execute
in class mxIGraphModel.mxAtomicGraphModelChange
Copyright (c) 2008 Gaudenz Alder. All rights reserved.