diff options
Diffstat (limited to 'src/java/org/apache/fop/render/intermediate/IFPainter.java')
-rw-r--r-- | src/java/org/apache/fop/render/intermediate/IFPainter.java | 164 |
1 files changed, 0 insertions, 164 deletions
diff --git a/src/java/org/apache/fop/render/intermediate/IFPainter.java b/src/java/org/apache/fop/render/intermediate/IFPainter.java index b354510f8..2c704db8b 100644 --- a/src/java/org/apache/fop/render/intermediate/IFPainter.java +++ b/src/java/org/apache/fop/render/intermediate/IFPainter.java @@ -27,12 +27,8 @@ import java.awt.Rectangle; import java.awt.geom.AffineTransform; import java.util.Map; -import javax.xml.transform.Result; - import org.w3c.dom.Document; -import org.apache.fop.apps.FOUserAgent; -import org.apache.fop.fonts.FontInfo; import org.apache.fop.traits.BorderProps; import org.apache.fop.traits.RuleStyle; @@ -86,155 +82,6 @@ import org.apache.fop.traits.RuleStyle; */ public interface IFPainter { - /** - * Set the user agent. - * @param userAgent The user agent - */ - void setUserAgent(FOUserAgent userAgent); - - /** - * Sets the JAXP Result object to receive the generated content. - * @param result the JAXP Result object to receive the generated content - * @throws IFException if an error occurs setting up the output - */ - void setResult(Result result) throws IFException; - - /** - * Sets the font set to work with. - * @param fontInfo the font info object - */ - void setFontInfo(FontInfo fontInfo); - - /** - * Sets the default font set (with no custom configuration). - */ - void setDefaultFontInfo(); - - /** - * Indicates whether the painter supports to handle the pages in mixed order rather than - * ascending order. - * @return true if out-of-order handling is supported - */ - boolean supportsPagesOutOfOrder(); - - /** - * Returns the MIME type of the output format that is generated by this implementation. - * @return the MIME type - */ - String getMimeType(); - - /** - * Indicates the start of a document. This method may only be called once before any other - * event method. - * @throws IFException if an error occurs while handling this event - */ - void startDocument() throws IFException; - - /** - * Indicates the end of a document. This method may only be called once after the whole - * document has been handled. Implementations can release resources (close streams). It is - * an error to call any event method after this method. - * @throws IFException if an error occurs while handling this event - */ - void endDocument() throws IFException; - - /** - * Indicates the start of the document header. This method is called right after the - * {@code #startDocument()} method. Extensions sent to this painter between - * {@code #startDocumentHeader()} and {@code #endDocumentHeader()} apply to the document as - * a whole (like document metadata). - * @throws IFException if an error occurs while handling this event - */ - void startDocumentHeader() throws IFException; - - /** - * Indicates the end of the document header. This method is called before the first - * page sequence. - * @throws IFException if an error occurs while handling this event - */ - void endDocumentHeader() throws IFException; - - /** - * Indicates the start of the document trailer. This method is called after the last - * page sequence. Extensions sent to the painter between - * {@code #startDocumentTrailer()} and {@code #endDocumentTrailer()} apply to the document as - * a whole and is used for document-level content that is only known after all pages have - * been rendered (like named destinations or the bookmark tree). - * @throws IFException if an error occurs while handling this event - */ - void startDocumentTrailer() throws IFException; - - /** - * Indicates the end of the document trailer. This method is called right before the - * {@code #endDocument()} method. - * @throws IFException if an error occurs while handling this event - */ - void endDocumentTrailer() throws IFException; - - /** - * Indicates the start of a new page sequence. - * @param id the page sequence's identifier (or null if none is available) - * @throws IFException if an error occurs while handling this event - */ - void startPageSequence(String id) throws IFException; - /** - * Indicates the end of a page sequence. - * @throws IFException if an error occurs while handling this event - */ - void endPageSequence() throws IFException; - - /** - * Indicates the start of a new page. - * @param index the index of the page (0-based) - * @param name the page name (usually the formatted page number) - * @param size the size of the page (equivalent to the MediaBox in PDF) - * @throws IFException if an error occurs while handling this event - */ - void startPage(int index, String name, Dimension size) throws IFException; - - /** - * Indicates the end of a page - * @throws IFException if an error occurs while handling this event - */ - void endPage() throws IFException; - - /** - * Indicates the start of the page header. - * @throws IFException if an error occurs while handling this event - */ - void startPageHeader() throws IFException; - - /** - * Indicates the end of the page header. - * @throws IFException if an error occurs while handling this event - */ - void endPageHeader() throws IFException; - - /** - * Indicates the start of the page content. - * @throws IFException if an error occurs while handling this event - */ - void startPageContent() throws IFException; - - /** - * Indicates the end of the page content. - * @throws IFException if an error occurs while handling this event - */ - void endPageContent() throws IFException; - - /** - * Indicates the start of the page trailer. The page trailer is used for writing down page - * elements which are only know after handling the page itself (like PDF targets). - * @throws IFException if an error occurs while handling this event - */ - void startPageTrailer() throws IFException; - - /** - * Indicates the end of the page trailer. - * @throws IFException if an error occurs while handling this event - */ - void endPageTrailer() throws IFException; - void startViewport(AffineTransform transform, Dimension size, Rectangle clipRect) throws IFException; void startViewport(AffineTransform[] transforms, Dimension size, Rectangle clipRect) throws IFException; //For transform, Batik's org.apache.batik.parser.TransformListHandler/Parser can be used @@ -340,15 +187,4 @@ public interface IFPainter { //etc. etc. - /** - * Handles an extension object. This can be a DOM document or any arbitrary - * object. If an implementation doesn't know how to handle a particular extension it is simply - * ignored. - * @param extension the extension object - * @throws IFException if an error occurs while handling this event - */ - void handleExtensionObject(Object extension) throws IFException; - - //TODO Prototype the following: - //ContentHandler handleExtension() throws Exception } |