Lines Matching refs:pmSize
379 Dimension pmSize = pm.getSize();
382 if (pmSize.width==0) {
383 pmSize = pm.getPreferredSize();
426 if (position.x + x + pmSize.width >= screenBounds.width
432 x = 0 - xOffset - pmSize.width;
436 x = 0 - xOffset - pmSize.width; // Prefer placement to the left
447 if (position.y + y + pmSize.height >= screenBounds.height
453 y = s.height - yOffset - pmSize.height;
463 if (position.x + x + pmSize.width >= screenBounds.width
469 x = s.width - xOffset - pmSize.width;
473 x = s.width - xOffset - pmSize.width; // Extend to the left
484 if (position.y + y + pmSize.height >= screenBounds.height &&
489 y = 0 - yOffset - pmSize.height; // Otherwise drop 'up'