DroidDiagram Programmer's Guide
RoutingOptions.setNodeVicinityCost Method
See Also
 






Sets the value added to the total route cost when a link passes through the buffer area around a node.

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

 Syntax

Java  Copy Code

public void setNodeVicinityCost (
    short value
)

 Parameters

value

An integer value added to the cost of a route when the link passes near a node.

 Remarks

This is a penalty value added to the total cost of an evaluated link route if it passes too close to a node. The routing algorithm aims to find paths that have a minimal cost, so assigning a greater value through setNodeVicinityCost makes links avoid passing close to nodes. The size of the buffer area around nodes in which passing links get a penalty cost is specified by means of setNodeVicinitySize.

 See Also

RoutingOptions Members
RoutingOptions Class
com.mindfusion.diagramming Namespace