|
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 Obstacle
s as input to subdivide an area into PartitionCell
s.
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 Obstacle s. |
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 Obstacle s. |
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 Obstacle
s.
obstacles
- A list of Obstacle
s 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.
Obstacle
s that cover the given cell.List getCells(Obstacle obstacle)
obstacle
- The obstacle to get the covered cells for.
PartitionCell
s that are covered by the given obstacle.void clear()
ObstaclePartition
can be reused and
init(java.util.List, y.geom.YRectangle)
initialized} with new Obstacle
s.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |