Lines Matching defs:px
230 protected Rectangle computePopupBounds(int px, int py, int pw, int ph) {
240 // px & py are relative to the combo box
250 if (scrBounds == null) return super.computePopupBounds(px, py, pw, ph);
271 px += comboBoxInsets.left;
272 if (!isPopDown) px -= FOCUS_RING_PAD_LEFT;
274 px = comboBoxBounds.width - pw - comboBoxInsets.right;
275 if (!isPopDown) px += FOCUS_RING_PAD_RIGHT;
280 p.x += px;
281 p.y += py; // Screen location of px & py
282 if (p.x < scrBounds.x) px -= (p.x + scrBounds.x);
295 px -= (minWidth - pw);
303 return computePopupBoundsForMenu(px, py, pw, ph, itemCount, scrBounds);
310 px += FOCUS_RING_PAD_LEFT;
314 final Rectangle r = new Rectangle(px, py, pw, ph);
318 return new Rectangle(px, -r.height + comboBoxInsets.top, r.width, r.height);
323 protected Rectangle computePopupBoundsForMenu(final int px, final int py, final int pw, final int ph, final int itemCount, final Rectangle scrBounds) {
324 //System.err.println("computePopupBoundsForMenu: " + px + "," + py + " " + pw + "," + ph);
343 final Rectangle popupBounds = new Rectangle(px, py, pw, ph);// Relative to comboBox