Lines Matching defs:popupBounds
59 final Rectangle popupBounds = popupMenu.getBounds(); // NB: origin is still at 0,0
60 paintRoundRect(g2d, popupBounds);
61 clipEdges(g2d, popupBounds);
68 protected void paintRoundRect(final Graphics2D g2d, final Rectangle popupBounds) {
76 g2d.drawRoundRect(-2, -2, popupBounds.width + 3, popupBounds.height + 3, 12, 12);
80 protected void clipEdges(final Graphics2D g2d, final Rectangle popupBounds) {
88 popupBounds.setLocation(popupMenu.getLocationOnScreen());
91 if (popupBounds.contains(invokerCenter)) {
100 final Point popupCenter = new Point((int)popupBounds.getCenterX(), (int)popupBounds.getCenterY());
103 if (invokerBounds.x + invokerBounds.width < popupBounds.x + OVERLAP_SLACK) {
111 g2d.fillRect(-2, popupBounds.height - 6, 8, 8);
115 if (popupBounds.x + popupBounds.width < invokerBounds.x + OVERLAP_SLACK) {
119 g2d.fillRect(popupBounds.width - 6, -2, 8, 8);
123 g2d.fillRect(popupBounds.width - 6, popupBounds.height - 6, 8, 8);
128 if (invokerBounds.y + invokerBounds.height < popupBounds.y + OVERLAP_SLACK) {
131 g2d.fillRect(-2, -2, popupBounds.width + 4, 8);