public vWindow Clip(vString xs, vString ys, vString ws, vString hs){ try { Rectangle r; if (clipping) { r = b.getClipBounds(); } else { r = c.getBounds(); r.x = -dx; r.y = -dy; } if (xs != null) r.x = (int) xs.mkInteger().value; if (ys != null) r.y = (int) ys.mkInteger().value; if (ws != null) r.width = (int) ws.mkInteger().value; if (hs != null) r.height = (int) hs.mkInteger().value; return Clip(r.x, r.y, r.width, r.height); } catch (iError e) { return null; }
public vWindow Clip() { b.setClip(-Integer.MIN_VALUE, -Integer.MIN_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE); a.setClip(-Integer.MIN_VALUE, -Integer.MIN_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE); clipping = false; return this;
public vWindow Clip(vString xs, vString ys, vString ws, vString hs){ // set atts    try {	Rectangle r;	if (clipping) {	    r = b.getClipBounds();	} else {	    r = c.getBounds();	    r.x = -dx;	    r.y = -dy;	}	if (xs != null) r.x = (int) xs.mkInteger().value;	if (ys != null) r.y = (int) ys.mkInteger().value;	if (ws != null) r.width = (int) ws.mkInteger().value;	if (hs != null) r.height = (int) hs.mkInteger().value;	return Clip(r.x, r.y, r.width, r.height);    } catch (iError e) {	return null;    }}