DroidDiagram Programmer's Guide
RoutingOptions.setLengthCost Method
See Also
 






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

 Syntax

Java  Copy Code

public void setLengthCost (
    short value
)

 Parameters

value

An integer value added to the cost of a route for each routing grid square through which the link passes.

 Remarks

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.

 See Also

RoutingOptions Members
RoutingOptions Class
com.mindfusion.diagramming Namespace