this.gc = c;
}
+ /**
+ * Allows to disable all clipping operations.
+ * @param value true if clipping should be disabled.
+ */
+ public void setClippingDisabled(boolean value) {
+ this.clippingDisabled = value;
+ }
+
/**
* Central handler for IOExceptions for this class.
* @param ioe IOException to handle
PCLGraphics2D graphics = new PCLGraphics2D(tempGen);
graphics.setGraphicContext(ctx);
+ graphics.setClippingDisabled(pclContext.isClippingDisabled());
Rectangle2D area = new Rectangle2D.Double(0.0, 0.0, imw, imh);
painter.paint(graphics, area);
package org.apache.fop.render.pcl;
-import java.util.Map;
-
-import org.apache.avalon.framework.configuration.Configuration;
import org.apache.fop.fo.extensions.ExtensionElementMapping;
import org.apache.fop.render.RendererContext;
import org.apache.fop.util.QName;
public boolean paintAsBitmap() {
QName qName = new QName(ExtensionElementMapping.URI, null, "conversion-mode");
return getForeignAttributes() != null
- && "bitmap".equals(getForeignAttributes().get(qName));
+ && "bitmap".equalsIgnoreCase((String)getForeignAttributes().get(qName));
}
+
+ /** @return true if clipping is disabled inside the PCLGraphics2D. */
+ public boolean isClippingDisabled() {
+ QName qName = new QName(ExtensionElementMapping.URI, null, "disable-clipping");
+ return getForeignAttributes() != null
+ && "true".equalsIgnoreCase((String)getForeignAttributes().get(qName));
+ }
+
}
\ No newline at end of file