Packagecom.yworks.yfiles.layout.router.polyline
Interfacepublic interface EnterIntervalCalculator

Interface providing additional intervals to traverse from one com.yworks.yfiles.layout.router.polyline.PartitionCell into an adjacent one.

To find a com.yworks.yfiles.layout.router.polyline.Path for an edge, the com.yworks.yfiles.layout.router.polyline.PathSearch algorithm traverses from the current partition cell to an adjacent partition cell. By default, the orthogonal interval shared by these two cells is used. Implementations of this interface may be added to the PathSearch to calculate additional enter intervals that might accumulate lower costs for entering the adjacent cell.

See also

com.yworks.yfiles.layout.router.polyline.PartitionCell
com.yworks.yfiles.layout.router.polyline.PathSearch.addAdditionalEnterIntervalCalculator()
com.yworks.yfiles.layout.router.polyline.Path
com.yworks.yfiles.layout.router.polyline.PathSearch


Public Methods
 MethodDefined By
  
appendEnterIntervals(currentEntrance:CellEntrance, enteredCell:PartitionCell, commonInterval:OrthogonalInterval, allEnterIntervals:List, context:PathSearchContext):void
Appends additional enter intervals for traversing from partition cell of currentEntrance to enteredCell to the given list enteredCell.
EnterIntervalCalculator
Method Detail
appendEnterIntervals()method
public function appendEnterIntervals(currentEntrance:CellEntrance, enteredCell:PartitionCell, commonInterval:OrthogonalInterval, allEnterIntervals:List, context:PathSearchContext):void

Appends additional enter intervals for traversing from partition cell of currentEntrance to enteredCell to the given list enteredCell.

Parameters

currentEntrance:CellEntrance — The current CellEntrance that is left.
 
enteredCell:PartitionCell — The neighbor cell that shall be entered.
 
commonInterval:OrthogonalInterval — The common interval of the left and entered partition cells.
 
allEnterIntervals:List — The list to which additional enter intervals have to be appended.
 
context:PathSearchContext — The context of the path search.