|
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 PartitionCell
s.
PartitionCell
s have to be disjoint. The union of all PartitionCell
s 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 PartitionCell s that intersect or cover the given rectangle. |
java.util.List |
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. |
Method Detail |
---|
java.util.List 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 returned
PartitionCell
s that are neighbors of the given celljava.util.List getCells(YRectangle rect)
PartitionCell
s that intersect or cover the given rectangle.
rect
- the rectangular area whose (partially) covered cells will be returned
PartitionCell
s that (partially) cover the given rectangular areaYRectangle getBounds()
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |