| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Partition
This class divides a rectangular area into one or more PartitionCells.
 
 PartitionCells have to be disjoint. The union of all PartitionCells covers the original area.
| Method Summary | |
|---|---|
|  YRectangle | getBounds()Returns the bounds of the original rectangular area that is partitioned. | 
|  java.util.List | getCells(YRectangle rect)Returns a list of all PartitionCells that intersect or cover the given rectangle. | 
|  java.util.List | 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. | 
| Method Detail | 
|---|
java.util.List 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 returned
PartitionCells that are neighbors of the given celljava.util.List getCells(YRectangle rect)
PartitionCells that intersect or cover the given rectangle.
rect - the rectangular area whose (partially) covered cells will be returned
PartitionCells that (partially) cover the given rectangular areaYRectangle getBounds()
| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||