// Graphics2D g=getG();return g==null?null:g.getClip();} public Rectangle getClipBounds() { Shape s = bufferClip(); return s == null ? null : s.getBounds(); }