public interface IPartition
PartitionCells.
PartitionCells have to be disjoint. The union of all PartitionCells covers the original area.
| Modifier and Type | Method and Description |
|---|---|
YRectangle |
getBounds()
Gets the bounds of the original rectangular area that is partitioned.
|
List<Object> |
getCells(YRectangle rect)
Returns a list of all
PartitionCells that intersect or cover the given rectangle. |
List<Object> |
getNeighbors(PartitionCell cell)
Returns a list of all
PartitionCells that are neighbors of the given cell, i.e., those cells that have a common border segment
with the given cell. |
YRectangle getBounds()
List<Object> getCells(YRectangle rect)
PartitionCells that intersect or cover the given rectangle.rect - the rectangular area whose (partially) covered cells will be returnedPartitionCells that (partially) cover the given rectangular areaList<Object> getNeighbors(PartitionCell cell)
PartitionCells that are neighbors of the given cell, i.e., those cells that have a common border segment
with the given cell.cell - the cell whose neighbors will be returnedPartitionCells that are neighbors of the given cell