MindFusion.Java Package Programmer's Guide
RoutingOptions Members
Methods
 


An instance of this class accessible by the getRoutingOptions method lets you customize the behavior of the link routing algorithm.

The following tables list the members exposed by the RoutingOptions type.

 Public Methods

  Name Description

getAnchoring

Gets a value indicating whether the routing algorithm should align links to the anchor points of nodes.

getAvoidOverlaps

Gets whether link segments should be pulled apart when they overlap in initially found routes.

getCrossingCost

Gets the value added to the total route cost if a link crosses another link.

getDistance

Return a heuristic function that returns the real distance sqrt(dx^2 + dy^2) between two pieces of the routing grid.

getDistSquare

Returns a heuristic function that returns the square distance dx^2 + dy^2 as a cost evaluation of the distance between two pieces of the routing grid.

getDontOptimizeLongRoutes

Gets a value indicating whether the algorithm should spend time to optimize long routes.

getEndOrientation

Gets a value indicating whether routes should end in horizontal or vertical direction.

getGridSize

Gets the size of the routing grid.

getIgnoreAnchoring

For internal use.

getLengthCost

Gets the value added to the total route cost for each grid square occupied by the link.

getMaxAbs

Returns a heuristic function that returns max(dx, dy) as a cost evaluation of the distance between two pieces of the routing grid.

getNodeVicinityCost

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

getNodeVicinitySize

Gets the size of the buffer area around a node for which link routes are assigned higher costs if they pass through that area.

getPolylineRouting

Gets a value indicating whether the end segments of Polyline links should be oriented orthogonally to node's borders and each other.

getRouteHeuristics

Gets the heuristic function used by the routing algorithm to choose next points in the route.

getStartOrientation

Gets a value indicating whether routes should start in horizontal or vertical direction.

getTriggerRerouting

Gets a value indicating when JDiagram should look for new link routes.

getTurnCost

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

setAnchoring

Sets a value indicating whether the routing algorithm should align links to the anchor points of nodes.

setAvoidOverlaps

Sets whether link segments should be pulled apart when they overlap in initially found routes.

setCrossingCost

Sets the value added to the total route cost if a link crosses another link.

setDefaultMode

Sets the routing cost parameters to their default values.

setDontOptimizeLongRoutes

Sets a value indicating whether the algorithm should spend time to optimize long routes.

setEndOrientation

Sets a value indicating whether routes should end in horizontal or vertical direction.

setGridSize

Sets the size of the routing grid.

setLengthCost

Sets the value added to the total route cost for each grid square occupied by the link.

setMinSegmentsMode

Sets the routing costs to values that find routes having low number of segments.

setNodeVicinityCost

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

setNodeVicinitySize

Sets the size of the buffer area around a node for which link routes are assigned higher costs if they pass through that area.

setPolylineRouting

Sets a value indicating whether the end segments of Polyline links should should be oriented orthogonally to node's borders and each other.

setQuickMode

Sets the routing costs to values that quickly find routes, however with a lower route quality.

setRouteHeuristics

Sets the heuristic function used by the routing algorithm to choose next points in the route.

setStartOrientation

Sets a value indicating whether routes should start in horizontal or vertical direction.

setTriggerRerouting

Sets a value indicating when JDiagram should look for new link routes.

setTurnCost

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

 See Also

RoutingOptions Class
com.mindfusion.diagramming Namespace