T
- The logical base type of the copied item.public class ItemCopiedEventArgs<T> extends Object implements IEventArgs
GraphCopier
.
This event is used for the NodeCopied
,
EdgeCopied
,
PortCopied
,
GraphCopied
,
LabelCopied
, and ObjectCopied
events. This event holds references to the original
of the copied item and the copied item
itself.
EMPTY
Constructor and Description |
---|
ItemCopiedEventArgs(T original,
T copy)
Creates a new argument for the given item and its original.
|
Modifier and Type | Method and Description |
---|---|
T |
getCopy()
The copied item.
|
T |
getOriginal()
The original of the
copied item . |
public ItemCopiedEventArgs(T original, T copy)
original
- The original
of the copied item.copy
- The copied item
.public final T getCopy()
public final T getOriginal()
copied item
.