Community
Participate
Working Groups
if (clippingStrategy != null) {
clipping = clippingStrategy.getClip(child);
} else {
// default clipping behavior is to clip at
// default clipping behaviour is to clip at bounds
// client area or bounds (dependent on whether there
clipping = new Rectangle[] { child.getBounds() };
// is an opaque border)
boolean optimizeClip = getBorder() == null
|| getBorder().isOpaque();
clipping = new Rectangle[] { optimizeClip ? child
.getBounds() : child.getBounds().getIntersection(
getClientArea(PRIVATE_RECT)) };
}
// child may now paint inside the clipping areas
for (int j = 0; j < clipping.length; j++) {