Support interface that is used by
DefaultGraph to create the
IUndoUnits
for structural graph changes.
An implementation of this interface can be found in DefaultGraph's ILookup.lookup.
If the undoability mechanism needs customization, client code can wrap the existing support instance
and do the necessary adjustments.
public function createAddBendUndoUnit(bend:IBend, index:int):IUndoUnit
Creates the bend creation UndoUnit for the given bend.
Parameters
| bend:IBend — The bend that has been created.
|
| |
| index:int — The index at which the bend has been added.
|
Returns
| IUndoUnit —
The unit that can be used to undo and redo the creation.
|
public function createAddLabelUndoUnit(label:ILabel):IUndoUnit
Creates the label creation UndoUnit for the given label.
Parameters
| label:ILabel — The label that has been created.
|
Returns
| IUndoUnit —
The unit that can be used to undo and redo the creation.
|
public function createAddPortUndoUnit(port:IPort):IUndoUnit
Creates the port creation UndoUnit for the given port.
Parameters
| port:IPort — The port that has been created.
|
Returns
| IUndoUnit —
The unit that can be used to undo and redo the creation.
|
public function createChangePortsUndoUnit(edge:IEdge, oldSource:IPort, oldTarget:IPort):IUndoUnit
Creates the change ports UndoUnit for the given edge.
Parameters
| edge:IEdge — The edge that has been reconnected to other ports.
|
| |
| oldSource:IPort — The old source port the edge connected to before the change.
|
| |
| oldTarget:IPort — The old target port the edge connected to before the change.
|
Returns
| IUndoUnit —
The unit that can be used to undo and redo the port change operation.
|
public function createCreateEdgeUndoUnit(edge:IEdge):IUndoUnit
Creates the edge creation UndoUnit for the given edge.
Parameters
| edge:IEdge — The edge that has been created.
|
Returns
| IUndoUnit —
The unit that can be used to undo and redo the creation.
|
public function createCreateNodeUndoUnit(node:INode):IUndoUnit
Creates the node creation UndoUnit for the given node.
Parameters
| node:INode — The node that has been created.
|
Returns
| IUndoUnit —
The unit that can be used to undo and redo the creation.
|
public function createRemoveBendUndoUnit(bend:IBend):IUndoUnit
Creates the bend removal UndoUnit for the given bend.
Parameters
| bend:IBend — The bend that will be removed.
|
Returns
| IUndoUnit —
The unit that can be used to undo and redo the removal.
|
public function createRemoveEdgeUndoUnit(edge:IEdge):IUndoUnit
Creates the edge removal UndoUnit for the given edge.
Parameters
| edge:IEdge — The edge that will be removed.
|
Returns
| IUndoUnit —
The unit that can be used to undo and redo the removal.
|
public function createRemoveLabelUndoUnit(label:ILabel):IUndoUnit
Creates the label removal UndoUnit for the given label.
Parameters
| label:ILabel — The label that will be removed.
|
Returns
| IUndoUnit —
The unit that can be used to undo and redo the removal.
|
public function createRemoveNodeUndoUnit(node:INode):IUndoUnit
Creates the node removal UndoUnit for the given node.
Parameters
| node:INode — The node that will be removed.
|
Returns
| IUndoUnit —
The unit that can be used to undo and redo the removal.
|