DroidDiagram Programmer's Guide
RoutingOptions.setTurnCost Method
See Also
 






Sets the value added to the total route cost when a link makes a turn.

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

 Syntax

Java  Copy Code

public void setTurnCost (
    short value
)

 Parameters

value

An integer value added to the cost of a route when the link makes a turn.

 Remarks

This is a penalty value added to the total cost of an evaluated link route for each turn it makes. The routing algorithm aims to find paths that have a minimal cost, so assigning a greater value to TurnCost leads paths that make less turns (hence they have less segments).

 See Also

RoutingOptions Members
RoutingOptions Class
com.mindfusion.diagramming Namespace