This class provides layout information about the edges of the graph during the layout.
Remarks
HierarchicalLayoutEdgeContext is a descriptor for each edge, holding information about the type of an edge, associated LayoutPortCandidates, edge groups as well as the current edge state.
It is used in all phases of the HierarchicalLayout to store edge information.
This class cannot be instantiated
Type Details
- yFiles module
- algorithms
Properties
Gets the LayoutEdge associated with this HierarchicalLayoutEdgeContext instance.
Remarks
null
should be returned.Property Value
Gets the LayoutNode associated with this HierarchicalLayoutEdgeContext instance.
Remarks
null
should be returned.Property Value
Gets or sets the critical edge priority of the LayoutEdge associated with this HierarchicalLayoutEdgeContext instance.
Remarks
Property Value
Gets or sets the crossing cost of the LayoutEdge associated with this HierarchicalLayoutEdgeContext instance.
Remarks
Property Value
Gets the HierarchicalLayoutEdgeDescriptor instance bound to the LayoutEdge associated with this HierarchicalLayoutEdgeContext instance.
Remarks
null
should be returned.Property Value
null
if no HierarchicalLayoutEdgeDescriptor is registeredGets or sets whether or not the LayoutEdge associated with this HierarchicalLayoutEdgeContext instance should be an upper same-layer edge (if it is a same-layer edge).
Remarks
An upper same-layer edge is an edge connecting two nodes of the same layer with polyline segments (not directly, with a straight line) and is routed above the layer.
If enabled, the edge will be routed above the layer, otherwise below it.
Property Value
true
if the same-layer edge should be routed above the layer, false
otherwiseGets whether or not the LayoutEdge associated with this HierarchicalLayoutEdgeContext instance has been reversed.
Property Value
Gets or sets the selected LayoutPortCandidate for the source port of the LayoutEdge associated with this HierarchicalLayoutEdgeContext instance.
Remarks
Property Value
Gets or sets the selected LayoutPortCandidate for the target port of the LayoutEdge associated with this HierarchicalLayoutEdgeContext instance.
Remarks
Property Value
Gets or sets the ID of the edge group at the source node to which the LayoutEdge associated with this HierarchicalLayoutEdgeContext instance belongs (if any).
Remarks
Property Value
Gets or sets the ID of the edge port alignment at the source node to which the LayoutEdge associated with this HierarchicalLayoutEdgeContext instance belongs (if any).
Remarks
Property Value
Gets or sets the EdgePortCandidates for the source port of the LayoutEdge associated with this HierarchicalLayoutEdgeContext instance.
Remarks
Property Value
Gets or sets the ID of the edge port group at the source node to which the LayoutEdge associated with this HierarchicalLayoutEdgeContext instance belongs (if any).
Remarks
Property Value
Gets or sets the ID of the edge group at the target node to which the LayoutEdge associated with this HierarchicalLayoutEdgeContext instance belongs (if any).
Remarks
Property Value
Gets or sets the ID of the edge port alignment at the target node to which the LayoutEdge associated with this HierarchicalLayoutEdgeContext instance belongs (if any).
Remarks
Property Value
Gets the EdgePortCandidates for the target port of the LayoutEdge associated with this HierarchicalLayoutEdgeContext instance.
Remarks
Property Value
Gets or sets the ID of the edge port group at the target node to which the LayoutEdge associated with this HierarchicalLayoutEdgeContext instance belongs (if any).
Remarks
Property Value
Gets or sets the thickness of the LayoutEdge associated with this HierarchicalLayoutEdgeContext instance.
Remarks
The thickness is considered when calculating minimum distances so that there are no overlaps between edges and other graph elements.
The thickness must have a non-negative value.
Property Value
Gets the type of the LayoutEdge associated with this HierarchicalLayoutEdgeContext instance.
Property Value
Gets whether or not the LayoutEdge associated with this HierarchicalLayoutEdgeContext instance is an upper same-layer edge.