private void visitChild(Graphics gfx, GfxVisitor visitor, Component comp) { Rectangle bounds = comp.getBounds(); Rectangle clip = gfx.getClipBounds().intersection(bounds);
private void visitChild(Graphics gfx, GfxVisitor visitor, Component comp) { Rectangle bounds = comp.getBounds(); Rectangle oldClip = gfx.getClipBounds(); if (oldClip == null) oldClip = bounds; Rectangle clip = oldClip.intersection(bounds);
	private void visitChild(Graphics gfx, GfxVisitor visitor, Component comp) {		Rectangle bounds = comp.getBounds();		Rectangle clip = gfx.getClipBounds().intersection(bounds);		if (clip.isEmpty())			return;		Graphics gfx2 = gfx.create();		gfx2.setClip(clip.x, clip.y, clip.width, clip.height);		gfx2.translate(bounds.x, bounds.y);		visitor.visit(comp, gfx2);	}