Enumeration to define how curved edge paths connect at the source and target side of the edge.
Type Details
- yfiles module
- layout-core
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.layout.CurveConnectionStyle
See Also
Constants
Curve connection style that keeps the port and the first/last segment that the layout algorithm would produce without curve routing.
Remarks
- For the HierarchicLayout the edge ports are distributed according to the specified portAssignment and the minimum first segment length as well as the minimum last segment length are considered. This way the edges keep the original hierarchic connection style and the first/last segment remains orthogonal.
- For the EdgeRouter the edge ports are distributed as usual and the the minimum first segment length as well as the minimum last segment length are considered. This way the edges keep the original connection style and the first/last segment remains orthogonal.
- For the CurveRoutingStage the edge ports as provided by the specified core layout algorithm are kept, including the starting segment provided by it. The minimum first segment length and the minimum last segment length is considered if the core layout did consider it too.
See Also
Sample Graphs
Curve connection style that changes the part of a curved edge path such that the curves have a more organic-like and straight start or end.
Remarks
The port location is specifically amended for the curve routing such that the connecting part of the curve can be routed directly into the required edge direction. This feature generates more direct and straighter routes that have less direction turns. In consequence, the resulting layouts may be more compact overall as less space for the routing is required.
The side where the port ends up at the source/target node may be changed with respect to the side the layout algorithm initially chooses. It is not changed if there are port constraints defined for it (i.e. PortConstraints or PortCandidates). This includes implicit constraints for the port due to port and edge grouping. Similarly, this style can also not be applied if there is an edge label or NodeHalos that require the connecting segment to remain as it is.
In contrast to KEEP_PORT, this style does not guarantee to respect the specified minimum first and last segment length settings.
See Also
Sample Graphs
Static Methods
Converts the argument to CurveConnectionStyle.
Parameters
A map of options to pass to the method.
- value - CurveConnectionStyle
- The value to convert to CurveConnectionStyle.
Returns
- ↪CurveConnectionStyle
- Either
value
if it is already a CurveConnectionStyle or an appropriate converted value.