public static class mxGraphModel.mxChildChange extends mxIGraphModel.mxAtomicGraphModelChange
Modifier and Type | Field and Description |
---|---|
protected Object |
child |
protected int |
index |
protected Object |
parent |
protected Object |
previous |
protected int |
previousIndex |
model
Constructor and Description |
---|
mxGraphModel.mxChildChange() |
mxGraphModel.mxChildChange(mxGraphModel model,
Object parent,
Object child) |
mxGraphModel.mxChildChange(mxGraphModel model,
Object parent,
Object child,
int index) |
Modifier and Type | Method and Description |
---|---|
protected void |
connect(Object cell,
boolean isConnect) |
void |
execute()
Changes the root of the model.
|
Object |
getChild() |
protected int |
getChildIndex(Object parent,
Object child)
Returns the index of the given child inside the given parent.
|
int |
getIndex() |
Object |
getParent() |
Object |
getPrevious() |
int |
getPreviousIndex() |
protected Object |
getTerminal(Object edge,
boolean source)
Gets the source or target terminal field for the given
edge even if the edge is not stored as an incoming or
outgoing edge in the respective terminal.
|
void |
setChild(Object value) |
void |
setIndex(int value) |
void |
setParent(Object value) |
void |
setPrevious(Object value) |
void |
setPreviousIndex(int value) |
protected void |
setTerminal(Object edge,
Object terminal,
boolean source)
Sets the source or target terminal field for the given edge
without inserting an incoming or outgoing edge in the
respective terminal.
|
getModel, setModel
protected Object parent
protected Object previous
protected Object child
protected int index
protected int previousIndex
public mxGraphModel.mxChildChange()
public mxGraphModel.mxChildChange(mxGraphModel model, Object parent, Object child)
public mxGraphModel.mxChildChange(mxGraphModel model, Object parent, Object child, int index)
public void setParent(Object value)
public Object getParent()
public void setPrevious(Object value)
public Object getPrevious()
public void setChild(Object value)
public Object getChild()
public void setIndex(int value)
public int getIndex()
public void setPreviousIndex(int value)
public int getPreviousIndex()
protected Object getTerminal(Object edge, boolean source)
protected void setTerminal(Object edge, Object terminal, boolean source)
protected void connect(Object cell, boolean isConnect)
protected int getChildIndex(Object parent, Object child)
public void execute()
execute
in interface mxUndoableEdit.mxUndoableChange
execute
in class mxIGraphModel.mxAtomicGraphModelChange
Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.