if (cropTo != null) {  Dimension d = getDimension(); if (cropTo.x < 0) { cropTo.x = 0; } if (cropTo.y < 0) { cropTo.y = 0; } if (cropTo.width + cropTo.x > d.width) { cropTo.width = d.width - cropTo.x; } if (cropTo.height + cropTo.y > d.height) { cropTo.height = d.height - cropTo.y; } }
	public void setCropTo(Rectangle cropTo) {		Log.log(Log.LEVEL_TRACE, MODULE, "setCropTo " + cropTo);		this.cropTo = cropTo;	}