Class AbstractIFDocumentHandler
java.lang.Object
org.apache.fop.render.intermediate.AbstractIFDocumentHandler
- All Implemented Interfaces:
IFDocumentHandler
- Direct Known Subclasses:
AbstractBinaryWritingIFDocumentHandler,AbstractXMLWritingIFDocumentHandler
Abstract base class for
IFDocumentHandler implementations.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractIFDocumentHandler(IFContext context) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidIndicates the end of the document header.voidIndicates the end of the document trailer.voidIndicates the end of the page header.voidIndicates the end of the page trailer.Returns the associated intermediate format context object.Returns a document navigation handler if this feature is supported.Returns the associated user agent.voidsetDocumentLocale(Locale locale) voidIndicates the start of a document.voidIndicates the start of the document header.voidIndicates the start of the document trailer.voidIndicates the start of the page header.voidIndicates the start of the page trailer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.fop.render.intermediate.IFDocumentHandler
endDocument, endPage, endPageContent, endPageSequence, getConfigurator, getFontInfo, getMimeType, handleExtensionObject, setDefaultFontInfo, setFontInfo, setResult, startPage, startPageContent, startPageSequence, supportsPagesOutOfOrder
-
Constructor Details
-
AbstractIFDocumentHandler
Default constructor.
-
-
Method Details
-
getContext
Returns the associated intermediate format context object.- Specified by:
getContextin interfaceIFDocumentHandler- Returns:
- the context object
-
getUserAgent
Returns the associated user agent.- Returns:
- the user agent
-
getStructureTreeEventHandler
- Specified by:
getStructureTreeEventHandlerin interfaceIFDocumentHandler- Returns:
- the structure tree builder
-
startDocument
Indicates the start of a document. This method may only be called once before any other event method.- Specified by:
startDocumentin interfaceIFDocumentHandler- Throws:
IFException- if an error occurs while handling this event
-
setDocumentLocale
- Specified by:
setDocumentLocalein interfaceIFDocumentHandler- Parameters:
locale- Locale of the document.
-
startDocumentHeader
Indicates the start of the document header. This method is called right after theIFDocumentHandler.startDocument()method. Extensions sent to this painter betweenIFDocumentHandler.startDocumentHeader()andIFDocumentHandler.endDocumentHeader()apply to the document as a whole (like document metadata).- Specified by:
startDocumentHeaderin interfaceIFDocumentHandler- Throws:
IFException- if an error occurs while handling this event
-
endDocumentHeader
Indicates the end of the document header. This method is called before the first page sequence.- Specified by:
endDocumentHeaderin interfaceIFDocumentHandler- Throws:
IFException- if an error occurs while handling this event
-
startDocumentTrailer
Indicates the start of the document trailer. This method is called after the last page sequence. Extensions sent to the painter betweenIFDocumentHandler.startDocumentTrailer()andIFDocumentHandler.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).- Specified by:
startDocumentTrailerin interfaceIFDocumentHandler- Throws:
IFException- if an error occurs while handling this event
-
endDocumentTrailer
Indicates the end of the document trailer. This method is called right before theIFDocumentHandler.endDocument()method.- Specified by:
endDocumentTrailerin interfaceIFDocumentHandler- Throws:
IFException- if an error occurs while handling this event
-
startPageHeader
Indicates the start of the page header.- Specified by:
startPageHeaderin interfaceIFDocumentHandler- Throws:
IFException- if an error occurs while handling this event
-
endPageHeader
Indicates the end of the page header.- Specified by:
endPageHeaderin interfaceIFDocumentHandler- Throws:
IFException- if an error occurs while handling this event
-
startPageTrailer
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).- Specified by:
startPageTrailerin interfaceIFDocumentHandler- Throws:
IFException- if an error occurs while handling this event
-
endPageTrailer
Indicates the end of the page trailer.- Specified by:
endPageTrailerin interfaceIFDocumentHandler- Throws:
IFException- if an error occurs while handling this event
-