Search this API

y.layout.router.polyline
Interface EnterIntervalCalculator


public interface EnterIntervalCalculator

This interface provides additional intervals in order to move from one partition cell into an adjacent one.

To find a Path for an edge, the PathSearch algorithm moves 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:
PartitionCell, PathSearch.addAdditionalEnterIntervalCalculator(EnterIntervalCalculator)
 
Your browser does not support SVG content.

Method Summary
 void appendEnterIntervals(CellEntrance currentEntrance, PartitionCell enteredCell, OrthogonalInterval commonInterval, java.util.List allEnterIntervals, PathSearchContext context)
          Appends additional enter intervals to the given list of enter intervals for moving from the partition cell of the current CellEntrance to the neighboring cell.
 

Method Detail

appendEnterIntervals

void appendEnterIntervals(CellEntrance currentEntrance,
                          PartitionCell enteredCell,
                          OrthogonalInterval commonInterval,
                          java.util.List allEnterIntervals,
                          PathSearchContext context)
Appends additional enter intervals to the given list of enter intervals for moving from the partition cell of the current CellEntrance to the neighboring cell.

Parameters:
currentEntrance - the current CellEntrance that is exited
enteredCell - the neighboring cell that will be entered
commonInterval - the common interval of the left and entered partition cells
allEnterIntervals - the list to which additional enter intervals have to be appended
context - the context of the path search

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.