Routes links by applying patterns of segment and turn sequences and accepting them when resulting paths do not cross nodes.
Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming
Java
![]() |
---|
public class PatternRouter implements LinkRouter |
You can add custom patterns to the Patterns list, or replace the standard patterns altogether. Patterns are defined using RoutePattern and RouteStep objects.
The following code defines a Z-like link route that will be accepted if it does not cross Obstacle nodes, nor passes by them within MinimumDistance.
Java
![]() |
---|
RoutePattern rightZigzag = new RoutePattern(); |
java.lang.Object
com.mindfusion.diagramming.PatternRouter