public interface IPartition
PartitionCell
s.
PartitionCell
s have to be disjoint. The union of all PartitionCell
s 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
PartitionCell s that intersect or cover the given rectangle. |
List<Object> |
getNeighbors(PartitionCell cell)
Returns a list of all
PartitionCell s 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)
PartitionCell
s that intersect or cover the given rectangle.rect
- the rectangular area whose (partially) covered cells will be returnedPartitionCell
s that (partially) cover the given rectangular areaList<Object> getNeighbors(PartitionCell cell)
PartitionCell
s 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 returnedPartitionCell
s that are neighbors of the given cell