Sets the value added to the total route cost for each grid square occupied by the link.
Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming
Java
![]() |
---|
public void setLengthCost ( |
An integer value added to the cost of a route for each routing grid square through which the link passes.
This is a penalty value added to the total cost of an evaluated link route for each piece of the routing grid it occupies. The routing algorithm aims to find paths that have a minimal cost, so assigning a greater value through setLengthCost leads to generating shorter paths.