MindFusion.Java Package Programmer's Guide
Diagram.setRouteLinks Method
See Also
 






Sets a value indicating whether links should avoid nodes by going the shortest path from their origin to their destination without crossing any other nodes.

Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming

 Syntax

Java  Copy Code

public void setRouteLinks (
    boolean value
)

 Parameters

value
true to route links, or false otherwise. The default is false.

 Remarks

The value of RouteLinks is used to initialize the AutoRoute property of new links. If a node is moved or resized, all links that intersect with its new position and have AutoRoute enabled are rerouted. Keep in mind that number of link segments will probably change when routing is enabled.

RoutingOptions allows tuning the routing algorithm. The most important options are the cost values exposed as LengthCost, TurnCost and CrossingCost properties. They greatly influence the shape of the generated route.

 See Also

Diagram Members
Diagram Class
com.mindfusion.diagramming Namespace
routeAllLinks Method
DynamicLinks Property
LinkCrossings Property
LinkRouter Property