Context passed from the GraphClipboard to the ClipboardGraphCopier about the items to copy.
Inheritance Hierarchy
Remarks
This class cannot be instantiated
Members
No filters for this type
Properties
All items to be copied as master items.
All items to be copied as master items.
Contains all items to be copied, their dependent items and items which are required to maintain the structural integrity of the clipboardGraph. If the sourceGraph is not a managed view these are normal graph elements.
readonlyfinal
All items from the sourceGraph that should be copied.
All items from the sourceGraph that should be copied.
If the sourceGraph is a managed view, these are view items. Contains the items that should be copied and items which depend on these.
readonlyfinal
All items to be copied that cannot be represented as master items.
All items to be copied that cannot be represented as master items.
Contains all items to be copied that are not present in the master graph. Also contains their dependent items and items which are required to maintain the structural integrity of the clipboardGraph.
readonlyfinal
The GraphClipboard that created this instance.
The GraphClipboard that created this instance.
readonlyfinal
The IFoldingView of the sourceGraph.
The IFoldingView of the sourceGraph.
null if the source graph is not a managed view.readonlyfinal
The graph to copy the items from.
The graph to copy the items from.
If the actual source is folding-enabled, this is a masterGraph.
readonlyfinal
The IFoldingView of the targetGraph.
The IFoldingView of the targetGraph.
null if the target graph is not a managed view.readonlyfinal
The graph to copy the items to.
The graph to copy the items to.
If the actual target is folding-enabled, this is a masterGraph.
readonlyfinal
Methods
Adds an item to be copied.
Adds an item to be copied.
final
Parameters
- item: IModelItem
- The item to be copied. If the sourceGraph is a managed view, this item has to be an item from the view's masterGraph.
- isHelper?: boolean
- Whether the item is only copied to maintain the structural integrity of the clipboardGraph.
Return Value
- boolean
falseif the item is already registered and therefore not added again.
Adds an item without master representation to be copied.
Adds an item without master representation to be copied.
final
Parameters
- item: IModelItem
- The item to be copied if the item is not represented by a master item. If the sourceGraph is not a managed view nothing should be added here.
- isHelper?: boolean
- Whether the item is only copied to maintain the structural integrity of the clipboardGraph.
Return Value
- boolean
falseif the item is already registered and therefore not added again.
Gets the IClipboardHelper for the given item.
Gets the IClipboardHelper for the given
item.Gets the bends whose owners are not copied.
Gets the bends whose owners are not copied.
Returns only bends which should be copied.
final
Return Value
- IEnumerable<IBend>
- All bends which should be copied but whose owners don't.
Gets the labels whose owners are not copied.
Gets the labels whose owners are not copied.
Returns only labels which should be copied.
final
Return Value
- IEnumerable<ILabel>
- All labels that should be copied but whose owners don't.
Gets the ports whose owners are not copied.
Gets the ports whose owners are not copied.
Returns only ports which should be copied.
final
Return Value
- IEnumerable<IPort>
- All ports that should be copied but whose owners don't.
Returns whether the item is no item to copy or was only copied to the clipboardGraph as it is required to maintain its structural integrity.
Returns whether the
item is no item to copy or was only copied to the clipboardGraph as it is required to maintain its structural integrity.final
Parameters
- item: IModelItem
- The item to check.
Return Value
- boolean
- Whether the item is only copied to clipboard for integrity.
Whether the item should be copied by copy.
Whether the item should be copied by copy.
Returns
true if the item should be copied, regardless of whether the item is represented as master item, without master representation, or only to maintain structural integrity.final
Parameters
- item: IModelItem
- The item to query for.
Return Value
- boolean
trueif the item should be copied in a clipboard operation.
Whether the item was added as master item and should be copied by copy.
Whether the item was added as master item and should be copied by copy.
Returns
true if the item should be copied as master item.final
Parameters
- item: IModelItem
- The item to query for.
Return Value
- boolean
trueif the item is a master item that should be copied in a clipboard operation.
Whether the item was added as view state item and should be copied by copy.
Whether the item was added as view state item and should be copied by copy.
Returns
true if the item should be copied without master representation.final
Parameters
- item: IModelItem
- The item to query for.
Return Value
- boolean
trueif the item is a view state item that should be copied in a clipboard operation.
Marks an item in the clipboardGraph that should not be pasted but was copied to the clipboardGraph as it was required to maintain its structural integrity.
Marks an item in the clipboardGraph that should not be pasted but was copied to the clipboardGraph as it was required to maintain its structural integrity.
final
Parameters
- item: IModelItem
- The item to add.
Return Value
- boolean
trueif the element is added;falseif the element is already present.