|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ObstaclePartition
A Partition that takes a list of Obstacles as input to subdivide an area into PartitionCells.
Implementations have to satisfy the following condition for each pair of obstacle and partition cell:
Obstacles either completely cover partition cells or do not intersect partition cells at all.
| Method Summary | |
|---|---|
void |
clear()
Clears the partition data so the ObstaclePartition can be reused and
init(java.util.List, y.geom.YRectangle) initialized} with new Obstacles. |
List |
getCells(Obstacle obstacle)
Returns all partition cells that are completely covered by the given obstacle. |
List |
getObstacles(PartitionCell cell)
Returns all obstacles that cover the given partition cell. |
void |
init(List obstacles,
YRectangle bounds)
Initializes a new partition of the area with the given bounds using the list of Obstacles. |
| Methods inherited from interface y.layout.router.polyline.Partition |
|---|
getBounds, getCells, getNeighbors |
| Method Detail |
|---|
void init(List obstacles,
YRectangle bounds)
bounds using the list of Obstacles.
obstacles - A list of Obstacles that shall be considered by the partition.bounds - The bounds of the partition.List getObstacles(PartitionCell cell)
cell - The cell to get the obstacles for.
Obstacles that cover the given cell.List getCells(Obstacle obstacle)
obstacle - The obstacle to get the covered cells for.
PartitionCells that are covered by the given obstacle.void clear()
ObstaclePartition can be reused and
init(java.util.List, y.geom.YRectangle) initialized} with new Obstacles.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||