mxUndoableEdit.mxUndoableChange
public static class mxGraphModel.mxChildChange extends mxIGraphModel.mxAtomicGraphModelChange
Modifier and Type | Field | Description |
---|---|---|
protected java.lang.Object |
child |
|
protected int |
index |
|
protected java.lang.Object |
parent |
|
protected java.lang.Object |
previous |
|
protected int |
previousIndex |
model
Constructor | Description |
---|---|
mxChildChange() |
|
mxChildChange(mxGraphModel model,
java.lang.Object parent,
java.lang.Object child) |
|
mxChildChange(mxGraphModel model,
java.lang.Object parent,
java.lang.Object child,
int index) |
Modifier and Type | Method | Description |
---|---|---|
protected void |
connect(java.lang.Object cell,
boolean isConnect) |
|
void |
execute() |
Changes the root of the model.
|
java.lang.Object |
getChild() |
|
protected int |
getChildIndex(java.lang.Object parent,
java.lang.Object child) |
Returns the index of the given child inside the given parent.
|
int |
getIndex() |
|
java.lang.Object |
getParent() |
|
java.lang.Object |
getPrevious() |
|
int |
getPreviousIndex() |
|
protected java.lang.Object |
getTerminal(java.lang.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(java.lang.Object value) |
|
void |
setIndex(int value) |
|
void |
setParent(java.lang.Object value) |
|
void |
setPrevious(java.lang.Object value) |
|
void |
setPreviousIndex(int value) |
|
protected void |
setTerminal(java.lang.Object edge,
java.lang.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 java.lang.Object parent
protected java.lang.Object previous
protected java.lang.Object child
protected int index
protected int previousIndex
public mxChildChange()
public mxChildChange(mxGraphModel model, java.lang.Object parent, java.lang.Object child)
public mxChildChange(mxGraphModel model, java.lang.Object parent, java.lang.Object child, int index)
public void setParent(java.lang.Object value)
public java.lang.Object getParent()
public void setPrevious(java.lang.Object value)
public java.lang.Object getPrevious()
public void setChild(java.lang.Object value)
public java.lang.Object getChild()
public void setIndex(int value)
public int getIndex()
public void setPreviousIndex(int value)
public int getPreviousIndex()
protected java.lang.Object getTerminal(java.lang.Object edge, boolean source)
protected void setTerminal(java.lang.Object edge, java.lang.Object terminal, boolean source)
protected void connect(java.lang.Object cell, boolean isConnect)
protected int getChildIndex(java.lang.Object parent, java.lang.Object child)
public void execute()
execute
in interface mxUndoableEdit.mxUndoableChange
execute
in class mxIGraphModel.mxAtomicGraphModelChange
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.