public final class EdgeEventArgs extends ItemEventArgs<IEdge>
ItemEventArgs
class that is bound to the IEdge
type and carries additional
source and target port information.
Since for some events (EdgePortsChanged
and EdgeRemoved
) it is unclear what SourcePort
and TargetPort
the edge had been connected to before the event, this event can be used to
carry exactly that information.
EMPTY
Constructor and Description |
---|
EdgeEventArgs(IEdge edge)
Initializes a new instance of the
EdgeEventArgs class. |
EdgeEventArgs(IEdge edge,
IPort source,
IPort target)
Initializes a new instance of the
EdgeEventArgs class. |
EdgeEventArgs(IEdge edge,
IPort source,
IPort target,
IPortOwner sourceOwner,
IPortOwner targetOwner)
Initializes a new instance of the
EdgeEventArgs class. |
Modifier and Type | Method and Description |
---|---|
IPort |
getSourcePort()
Gets the source port the edge was connected to before the event happened.
|
IPortOwner |
getSourcePortOwner()
Gets the owner of the source port the edge was connected to before the event happened.
|
IPort |
getTargetPort()
Gets the target port the edge was connected to before the event happened.
|
IPortOwner |
getTargetPortOwner()
Gets the owner of the target port the edge was connected to before the event happened.
|
getItem
public EdgeEventArgs(IEdge edge)
EdgeEventArgs
class.edge
- The edge to assign to the Item
property.public EdgeEventArgs(IEdge edge, IPort source, IPort target)
EdgeEventArgs
class.edge
- The edge to assign to the Item
property.source
- The source port the edge was connected to before the event happened.target
- The target port the edge was connected to before the event happened.public EdgeEventArgs(IEdge edge, IPort source, IPort target, IPortOwner sourceOwner, IPortOwner targetOwner)
EdgeEventArgs
class.edge
- The edge to assign to the Item
property.source
- The source port the edge was connected to before the event happened.target
- The target port the edge was connected to before the event happened.sourceOwner
- The owner of the source port the edge was connected to before the event happened.targetOwner
- The owner of the target port the edge was connected to before the event happened.public final IPort getSourcePort()
public final IPortOwner getSourcePortOwner()
public final IPort getTargetPort()
public final IPortOwner getTargetPortOwner()