JGraph X 0.15.0.3


com.mxgraph.model
Class mxGraphModel.mxChildChange

java.lang.Object
  extended by com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
      extended by com.mxgraph.model.mxGraphModel.mxChildChange
All Implemented Interfaces:
mxUndoableEdit.mxUndoableChange
Enclosing class:
mxGraphModel

public static class mxGraphModel.mxChildChange
extends mxIGraphModel.mxAtomicGraphModelChange


Field Summary
protected  mxICell child
           
protected  int index
           
protected  boolean isAdded
           
protected  mxICell parent
           
protected  mxICell previous
           
protected  int previousIndex
           
 
Fields inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
model
 
Constructor Summary
mxGraphModel.mxChildChange(mxGraphModel model, mxICell parent, mxICell child)
           
mxGraphModel.mxChildChange(mxGraphModel model, mxICell parent, mxICell child, int index)
           
 
Method Summary
protected  void connect(mxICell cell, boolean isConnect)
           
 void execute()
          Changes the root of the model.
 mxICell getChild()
           
 int getIndex()
           
 mxICell getParent()
           
 mxICell getPrevious()
           
 int getPreviousIndex()
           
 boolean isAdded()
           
 
Methods inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
getModel, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

protected mxICell parent

previous

protected mxICell previous

child

protected mxICell child

index

protected int index

previousIndex

protected int previousIndex

isAdded

protected boolean isAdded
Constructor Detail

mxGraphModel.mxChildChange

public mxGraphModel.mxChildChange(mxGraphModel model,
                                  mxICell parent,
                                  mxICell child)

mxGraphModel.mxChildChange

public mxGraphModel.mxChildChange(mxGraphModel model,
                                  mxICell parent,
                                  mxICell child,
                                  int index)
Method Detail

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

JGraph X 0.15.0.3


Copyright (c) 2008 Gaudenz Alder. All rights reserved.