|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.render.java2d.Java2DDocumentHandler
public class Java2DDocumentHandler
IFDocumentHandler
implementation that produces
Graphics2D instance.
Constructor Summary | |
---|---|
Java2DDocumentHandler()
|
Method Summary | |
---|---|
void |
endDocument()
Indicates the end of a document. |
void |
endDocumentHeader()
Indicates the end of the document header. |
void |
endDocumentTrailer()
Indicates the end of the document trailer. |
void |
endPage()
Indicates the end of a page |
void |
endPageContent()
Indicates the end of the page content. |
void |
endPageHeader()
Indicates the end of the page header. |
void |
endPageSequence()
Indicates the end of a page sequence. |
void |
endPageTrailer()
Indicates the end of the page trailer. |
IFDocumentHandlerConfigurator |
getConfigurator()
Returns the configurator for this document handler, if any. |
IFContext |
getContext()
Returns the associated intermediate format context object. |
IFDocumentNavigationHandler |
getDocumentNavigationHandler()
Returns a document navigation handler if this feature is supported. |
FontInfo |
getFontInfo()
Returns the font set to work with. |
java.lang.String |
getMimeType()
Returns the MIME type of the output format that is generated by this implementation. |
StructureTreeEventHandler |
getStructureTreeEventHandler()
|
void |
handleExtensionObject(java.lang.Object extension)
Handles an extension object. |
void |
setContext(IFContext context)
|
void |
setDefaultFontInfo(FontInfo fontInfo)
Sets the default font set (with no custom configuration). |
void |
setDocumentLocale(java.util.Locale locale)
|
void |
setFontInfo(FontInfo fontInfo)
Sets the font set to work with. |
void |
setResult(javax.xml.transform.Result result)
Sets the JAXP Result object to receive the generated content. |
void |
startDocument()
Indicates the start of a document. |
void |
startDocumentHeader()
Indicates the start of the document header. |
void |
startDocumentTrailer()
Indicates the start of the document trailer. |
void |
startPage(int index,
java.lang.String name,
java.lang.String pageMasterName,
java.awt.Dimension size)
Indicates the start of a new page. |
IFPainter |
startPageContent()
Indicates the start of the page content. |
void |
startPageHeader()
Indicates the start of the page header. |
void |
startPageSequence(java.lang.String id)
Indicates the start of a new page sequence. |
void |
startPageTrailer()
Indicates the start of the page trailer. |
boolean |
supportsPagesOutOfOrder()
Indicates whether the painter supports to handle the pages in mixed order rather than ascending order. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Java2DDocumentHandler()
Method Detail |
---|
public void setContext(IFContext context)
public IFContext getContext()
IFDocumentHandler
getContext
in interface IFDocumentHandler
public void setResult(javax.xml.transform.Result result) throws IFException
IFDocumentHandler
setResult
in interface IFDocumentHandler
result
- the JAXP Result object to receive the generated content
IFException
- if an error occurs setting up the outputpublic void setFontInfo(FontInfo fontInfo)
IFDocumentHandler
setFontInfo
in interface IFDocumentHandler
fontInfo
- the font info objectpublic FontInfo getFontInfo()
IFDocumentHandler
getFontInfo
in interface IFDocumentHandler
public void setDefaultFontInfo(FontInfo fontInfo)
IFDocumentHandler
setDefaultFontInfo
in interface IFDocumentHandler
fontInfo
- the font info object to populatepublic IFDocumentHandlerConfigurator getConfigurator()
IFDocumentHandler
getConfigurator
in interface IFDocumentHandler
public StructureTreeEventHandler getStructureTreeEventHandler()
getStructureTreeEventHandler
in interface IFDocumentHandler
public IFDocumentNavigationHandler getDocumentNavigationHandler()
IFDocumentHandler
getDocumentNavigationHandler
in interface IFDocumentHandler
public boolean supportsPagesOutOfOrder()
IFDocumentHandler
supportsPagesOutOfOrder
in interface IFDocumentHandler
public java.lang.String getMimeType()
IFDocumentHandler
getMimeType
in interface IFDocumentHandler
public void startDocument() throws IFException
IFDocumentHandler
startDocument
in interface IFDocumentHandler
IFException
- if an error occurs while handling this eventpublic void endDocument() throws IFException
IFDocumentHandler
endDocument
in interface IFDocumentHandler
IFException
- if an error occurs while handling this eventpublic void setDocumentLocale(java.util.Locale locale)
setDocumentLocale
in interface IFDocumentHandler
locale
- Locale of the document.public void startDocumentHeader() throws IFException
IFDocumentHandler
IFDocumentHandler.startDocument()
method. Extensions sent to this painter between
IFDocumentHandler.startDocumentHeader()
and IFDocumentHandler.endDocumentHeader()
apply to the document as
a whole (like document metadata).
startDocumentHeader
in interface IFDocumentHandler
IFException
- if an error occurs while handling this eventpublic void endDocumentHeader() throws IFException
IFDocumentHandler
endDocumentHeader
in interface IFDocumentHandler
IFException
- if an error occurs while handling this eventpublic void startDocumentTrailer() throws IFException
IFDocumentHandler
IFDocumentHandler.startDocumentTrailer()
and IFDocumentHandler.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).
startDocumentTrailer
in interface IFDocumentHandler
IFException
- if an error occurs while handling this eventpublic void endDocumentTrailer() throws IFException
IFDocumentHandler
IFDocumentHandler.endDocument()
method.
endDocumentTrailer
in interface IFDocumentHandler
IFException
- if an error occurs while handling this eventpublic void startPageSequence(java.lang.String id) throws IFException
IFDocumentHandler
startPageSequence
in interface IFDocumentHandler
id
- the page sequence's identifier (or null if none is available)
IFException
- if an error occurs while handling this eventpublic void endPageSequence() throws IFException
IFDocumentHandler
endPageSequence
in interface IFDocumentHandler
IFException
- if an error occurs while handling this eventpublic void startPage(int index, java.lang.String name, java.lang.String pageMasterName, java.awt.Dimension size) throws IFException
IFDocumentHandler
startPage
in interface IFDocumentHandler
index
- the index of the page (0-based)name
- the page name (usually the formatted page number)pageMasterName
- the name of the simple-page-master that generated this pagesize
- the size of the page (equivalent to the MediaBox in PDF)
IFException
- if an error occurs while handling this eventpublic void endPage() throws IFException
IFDocumentHandler
endPage
in interface IFDocumentHandler
IFException
- if an error occurs while handling this eventpublic void startPageHeader() throws IFException
IFDocumentHandler
startPageHeader
in interface IFDocumentHandler
IFException
- if an error occurs while handling this eventpublic void endPageHeader() throws IFException
IFDocumentHandler
endPageHeader
in interface IFDocumentHandler
IFException
- if an error occurs while handling this eventpublic IFPainter startPageContent() throws IFException
IFDocumentHandler
IFPainter
interface
which is used to paint the page contents.
startPageContent
in interface IFDocumentHandler
IFException
- if an error occurs while handling this eventpublic void endPageContent() throws IFException
IFDocumentHandler
IFPainter
returned by the
respective IFDocumentHandler.startPageContent()
method are illegal.
endPageContent
in interface IFDocumentHandler
IFException
- if an error occurs while handling this eventpublic void startPageTrailer() throws IFException
IFDocumentHandler
startPageTrailer
in interface IFDocumentHandler
IFException
- if an error occurs while handling this eventpublic void endPageTrailer() throws IFException
IFDocumentHandler
endPageTrailer
in interface IFDocumentHandler
IFException
- if an error occurs while handling this eventpublic void handleExtensionObject(java.lang.Object extension) throws IFException
IFDocumentHandler
handleExtensionObject
in interface IFDocumentHandler
extension
- the extension object
IFException
- if an error occurs while handling this event
|
fop 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |