Provides classes and interfaces for automatic polylinear routing of a graph's edges.

orthogonal routing polylinear routing
Fig 1: The same graph with orthogonal (left) and polylinear (right) edge routing.
The main class of this layout algorithm is com.yworks.yfiles.layout.router.polyline.EdgeRouter . See its class description for conceptual information.

Related Documentation

See the yFiles Developer's Guide section on Polyline Edge Routing for a description of the polyline edge routing algorithm.



Interfaces
 InterfaceDescription
 DynamicDecomposition This interface should be implemented by classes that dispatch notifications about changes in partitions.
 DynamicDecomposition_Listener Interface for classes that want to be notified about changes in partitions.
 EnterIntervalCalculator Interface providing additional intervals to traverse from one com.yworks.yfiles.layout.router.polyline.PartitionCell into an adjacent one.
 GraphPartitionExtension Implementations are extending the functionality of a com.yworks.yfiles.layout.router.polyline.GraphPartition.
 ObstaclePartition A com.yworks.yfiles.layout.router.polyline.Partition that takes a list of com.yworks.yfiles.layout.router.polyline.Obstacle s as input to subdivide an area into com.yworks.yfiles.layout.router.polyline.PartitionCell s.
 Partition Divides a rectangular area into one or more com.yworks.yfiles.layout.router.polyline.PartitionCell s.
 PartitionCellKeys This interface defines keys to obtain additional information about a com.yworks.yfiles.layout.router.polyline.PartitionCell.
Classes
 ClassDescription
 AbstractSegmentInfo Stores location information for orthogonal edge segments.
 CellEntrance Describes where and from which direction a com.yworks.yfiles.layout.router.polyline.PartitionCell has been entered during a path search.
 CellSegmentInfo Stores information about the part of an edge segment that lies inside a specified com.yworks.yfiles.layout.router.polyline.PartitionCell.
 Channel A channel is a set of vertical or horizontal edge segments whose locations depend on each other.
 ChannelBasedPathRouting Routes edges using their pre-calculated com.yworks.yfiles.layout.router.polyline.Path information.
 DynamicObstacleDecomposition An com.yworks.yfiles.layout.router.polyline.ObstaclePartition that decomposes its area dynamically and implements the com.yworks.yfiles.layout.router.polyline.DynamicDecomposition interface.
 EdgeCellInfo Encapsulates the information that determines the route of a specific edge within a specific partition cell.
 EdgeInfo Encapsulates the information required to route an edge with a path routing algorithm.
 EdgeLayoutDescriptor This class is used by com.yworks.yfiles.layout.router.polyline.EdgeRouter to determine the routing details of the graph's edges.
 EdgeRouter This class represents a polyline edge router which calculates an edge layout containing only straight segments.
 GraphPartition Partitions the bounding box of a graph in rectangles using graph elements as obstacles.
 GraphPartitionExtensionAdapter This abstract adapter provides an empty implementation of com.yworks.yfiles.layout.router.polyline.GraphPartitionExtension.
 Grid Provides support for routing edges on equidistant grid lines.
 Interval This class represents a one-dimensional, closed interval.
 Obstacle Obstacles are used by implementations of com.yworks.yfiles.layout.router.polyline.ObstaclePartition to subdivide an area into com.yworks.yfiles.layout.router.polyline.PartitionCell s.
 OrthogonalInterval A horizontal or vertical com.yworks.yfiles.layout.router.polyline.Interval that additionally stores a y- (in the horizontal case) or x-coordinate (in the vertical case).
 PartitionCell Represents a rectangular part of the com.yworks.yfiles.layout.router.polyline.Partition as result of the decomposition process.
 PartitionCell_PartitionCellBorder Type-safe enumeration that is used to define the border of a partition cell.
 PartitionCellKeysCompanion 
 Path A Path represents the result of a path search as a list of consecutive com.yworks.yfiles.layout.router.polyline.CellEntrance s.
 PathSearch A pathfinding algorithm that calculates the shortest (that means the cheapest) paths for a set of edges through a com.yworks.yfiles.layout.router.polyline.GraphPartition.
 PathSearchConfiguration Contains the basic configuration used by path search algorithms.
 PathSearchContext Provides context information that is useful for the path search algorithm.
 PathSearchExtension Extensions are added to a com.yworks.yfiles.layout.router.polyline.PathSearch to influence the search process.
 PathSearchResult Manages the best com.yworks.yfiles.layout.router.polyline.Path s found for each edge and provides according com.yworks.yfiles.layout.router.polyline.EdgeInfo s.
 PenaltySettings Provides the cost penalties that are applied for violating restrictions during a path search.
 PolylineLayoutStage Adds polyline segment to the orthogonal edge paths of a graph.
 SegmentGroup Represents a group of segments of different edges, that shall be combined at the common source or target side.
 SegmentInfo Stores information about the possible location of an orthogonal edge segment.