Lines Matching refs:bounds
158 // get final destination compositing bounds (after all transformations if needed)
161 // constrain the bounds to be within surface bounds
212 // get final destination compositing bounds (after all transformations if needed)
215 // constrain the bounds to be within surface bounds
248 // get final destination compositing bounds (after all transformations if needed)
270 // constrain the bounds to be within surface bounds
317 Rectangle2D bounds = shape.getBounds2D();
318 bounds.setRect(bounds.getX() - paddingHalf, bounds.getY() - paddingHalf, bounds.getWidth() + padding, bounds.getHeight() + padding);
320 double newX = Math.floor(bounds.getX());
321 double newY = Math.floor(bounds.getY());
322 double newW = Math.ceil(bounds.getWidth()) + (newX < bounds.getX() ? 1 : 0);
323 double newH = Math.ceil(bounds.getHeight()) + (newY < bounds.getY() ? 1 : 0);
324 bounds.setRect(newX, newY, newW, newH);
326 return bounds;
329 void clipBounds(SunGraphics2D sg2d, Rectangle2D bounds) {
344 Region intersection = sg2d.clipRegion.getIntersectionXYWH((int) bounds.getX(), (int) bounds.getY(), (int) bounds.getWidth(), (int) bounds.getHeight());
345 bounds.setRect(intersection.getLoX(), intersection.getLoY(), intersection.getWidth(), intersection.getHeight());