}
}
- /**
- * Get the MIME type of the renderer.
- *
- * @return The MIME type of the renderer
- */
- public String getMimeType() {
- return null;
- }
-
/**
* Converts a millipoint-based transformation matrix to points.
* @param at a millipoint-based transformation matrix
import org.apache.fop.apps.FOPException;
import org.apache.fop.apps.FOUserAgent;
+import org.apache.fop.apps.MimeConstants;
import org.apache.fop.area.PageViewport;
import org.apache.fop.render.java2d.Java2DRenderer;
public PageableRenderer() {
}
+ /** {@inheritDoc} */
+ public String getMimeType() {
+ return MimeConstants.MIME_FOP_PRINT;
+ }
+
/** {@inheritDoc} */
public void setUserAgent(FOUserAgent agent) {
super.setUserAgent(agent);
import java.util.Map;
import org.apache.fop.apps.FOUserAgent;
-import org.apache.fop.apps.MimeConstants;
/**
* Renderer that prints through java.awt.PrintJob.
printerJob.setPageable(this);
}
- /** {@inheritDoc} */
- public String getMimeType() {
- return MimeConstants.MIME_FOP_PRINT;
- }
-
private void initializePrinterJob() {
if (this.printerJob == null) {
printerJob = PrinterJob.getPrinterJob();