Package | Description |
---|---|
com.yworks.yfiles.graph |
Definitions, default implementations, and support classes that represent graph structures and provide facilities for their programmatic modification.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractUndoUnit
An abstract convenience implementation of
IUndoUnit . |
class |
CompositeUndoUnit
A group of
IUndoUnit s that are undone/redone as a single unit. |
class |
ConsumerUndoUnit<T>
A convenience implementation of the
IUndoUnit interface that uses simple delegates for the actual undo and redo
operations. |
Modifier and Type | Method and Description |
---|---|
protected IUndoUnit |
DefaultGraph.createUndoUnitForBendAddition(IBend bend,
int index)
Creates the bend addition
undo unit for the given bend. |
protected IUndoUnit |
DefaultGraph.createUndoUnitForBendRemoval(IBend bend)
Creates the bend removal
undo unit for the given bend. |
protected IUndoUnit |
DefaultGraph.createUndoUnitForEdgeCreation(IEdge edge)
Creates the edge creation
undo unit for the given edge. |
protected IUndoUnit |
DefaultGraph.createUndoUnitForEdgeReconnection(IEdge edge,
IPort oldSource,
IPort oldTarget)
Creates the edge reconnection
undo unit for the given edge. |
protected IUndoUnit |
DefaultGraph.createUndoUnitForEdgeRemoval(IEdge edge)
Creates the edge removal
undo unit for the given edge. |
protected IUndoUnit |
DefaultGraph.createUndoUnitForIsGroupNodeChange(INode node,
boolean isGroupNode)
Creates the
undo unit for changing whether the given node is a group node. |
protected IUndoUnit |
DefaultGraph.createUndoUnitForLabelAddition(ILabel label)
Creates the label addition
undo unit for the given label. |
protected IUndoUnit |
DefaultGraph.createUndoUnitForLabelRemoval(ILabel label)
Creates the label removal
undo unit for the given label. |
protected IUndoUnit |
DefaultGraph.createUndoUnitForNodeCreation(INode node,
INode parent,
boolean isGroupNode)
Creates the node creation
undo unit for the given node. |
protected IUndoUnit |
DefaultGraph.createUndoUnitForNodeRemoval(INode node)
Creates the node removal
undo unit for the given node. |
protected IUndoUnit |
DefaultGraph.createUndoUnitForParentChange(INode node,
INode oldParent,
INode newParent)
Creates the parent change
undo unit for the given node. |
protected IUndoUnit |
DefaultGraph.createUndoUnitForPortAddition(IPort port)
Creates the port addition
undo unit for the given port. |
protected IUndoUnit |
DefaultGraph.createUndoUnitForPortRemoval(IPort port)
Creates the port removal
undo unit for the given port. |
Modifier and Type | Method and Description |
---|---|
void |
CompositeUndoUnit.add(IUndoUnit unit)
Adds a new
IUndoUnit to the queue. |
void |
UndoEngine.addUnit(IUndoUnit unit)
Adds a new
IUndoUnit to the queue. |
boolean |
CompositeUndoUnit.removeUnit(IUndoUnit unit)
Tries to remove a given unit from this compound unit.
|
boolean |
IUndoUnit.tryMergeUnit(IUndoUnit unit)
Tries to merge the given unit with this one.
|
boolean |
CompositeUndoUnit.tryMergeUnit(IUndoUnit unit)
Implements the
IUndoUnit interface. |
boolean |
AbstractUndoUnit.tryMergeUnit(IUndoUnit unit) |
boolean |
IUndoUnit.tryReplaceUnit(IUndoUnit unit)
Tries to replace the given unit with this one.
|
boolean |
CompositeUndoUnit.tryReplaceUnit(IUndoUnit unit)
Implements the
IUndoUnit interface. |
boolean |
AbstractUndoUnit.tryReplaceUnit(IUndoUnit unit) |