Lines Matching refs:itemBounds
205 * @param itemBounds the bounding rectangle of item
209 protected abstract Rectangle getSubmenuBounds(Rectangle itemBounds, Dimension windowSize);
650 * rectangle itemBounds on the screen of screenSize.
658 * @param itemBounds rectangle of item in global coordinates
662 Rectangle fitWindowBelow(Rectangle itemBounds, Dimension windowSize, Dimension screenSize) {
668 int x = (itemBounds.x > 0) ? itemBounds.x : 0;
669 int y = (itemBounds.y + itemBounds.height > 0) ? itemBounds.y + itemBounds.height : 0;
687 * @param itemBounds rectangle of item in global coordinates
691 Rectangle fitWindowAbove(Rectangle itemBounds, Dimension windowSize, Dimension screenSize) {
697 int x = (itemBounds.x > 0) ? itemBounds.x : 0;
698 int y = (itemBounds.y > screenSize.height) ? screenSize.height - height : itemBounds.y - height;
716 * @param itemBounds rectangle of item in global coordinates
720 Rectangle fitWindowRight(Rectangle itemBounds, Dimension windowSize, Dimension screenSize) {
726 int x = (itemBounds.x + itemBounds.width > 0) ? itemBounds.x + itemBounds.width : 0;
727 int y = (itemBounds.y > 0) ? itemBounds.y : 0;
745 * @param itemBounds rectangle of item in global coordinates
749 Rectangle fitWindowLeft(Rectangle itemBounds, Dimension windowSize, Dimension screenSize) {
755 int x = (itemBounds.x < screenSize.width) ? itemBounds.x - width : screenSize.width - width;
756 int y = (itemBounds.y > 0) ? itemBounds.y : 0;