|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.fo.FOEventHandler
org.apache.fop.area.AreaTreeHandler
public class AreaTreeHandler
Area tree handler for formatting objects. Concepts: The area tree is to be as small as possible. With minimal classes and data to fully represent an area tree for formatting objects. The area tree needs to be simple to render and follow the spec closely. This area tree has the concept of page sequences. Wherever possible information is discarded or optimized to keep memory use low. The data is also organized to make it possible for renderers to minimize their output. A page can be saved if not fully resolved and once rendered a page contains only size and id reference information. The area tree pages are organized in a model that depends on the type of renderer.
| Field Summary | |
|---|---|
protected AreaTreeModel |
model
The AreaTreeModel in use |
| Fields inherited from class org.apache.fop.fo.FOEventHandler |
|---|
fontInfo, foUserAgent |
| Constructor Summary | |
|---|---|
AreaTreeHandler(FOUserAgent userAgent,
java.lang.String outputFormat,
java.io.OutputStream stream)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addUnresolvedIDRef(java.lang.String idref,
Resolvable res)
Deprecated. use getIDTracker().addUnresolvedIDRef(idref, res) instead |
boolean |
alreadyResolvedID(java.lang.String id)
Deprecated. use getIDTracker().alreadyResolvedID(id) instead |
void |
associateIDWithPageViewport(java.lang.String id,
PageViewport pv)
Deprecated. use getIDTracker().associateIDWithPageViewport(id, pv) instead |
void |
endDocument()
End the document. |
void |
endExternalDocument(ExternalDocument document)
Process the end of the external-document extension. |
void |
endPageSequence(PageSequence pageSequence)
End the PageSequence. |
java.lang.String |
generatePageViewportKey()
Generates and returns a unique key for a page viewport. |
AreaTreeModel |
getAreaTreeModel()
Get the area tree model for this area tree. |
IDTracker |
getIDTracker()
Get the IDTracker for this area tree. |
LayoutManagerMaker |
getLayoutManagerMaker()
Get the LayoutManager maker for this area tree. |
java.util.List<PageViewport> |
getPageViewportsContainingID(java.lang.String id)
Deprecated. use getIDTracker().getPageViewportsContainingID(id) instead |
FormattingResults |
getResults()
Get information about the rendered output, like number of pages created. |
boolean |
isComplexScriptFeaturesEnabled()
Check whether complex script features are enabled. |
void |
notifyPageSequenceFinished(AbstractPageSequence pageSequence,
int pageCount)
Called by the PageSequenceLayoutManager when it is finished with a page-sequence. |
protected void |
setupModel(FOUserAgent userAgent,
java.lang.String outputFormat,
java.io.OutputStream stream)
Sets up the AreaTreeModel instance for use by the AreaTreeHandler. |
void |
signalIDProcessed(java.lang.String id)
Deprecated. use getIDTracker().signalIDProcessed(id) instead |
void |
signalPendingID(java.lang.String id)
Deprecated. use getIDTracker().signalPendingID(id) instead |
void |
startDocument()
Prepare AreaTreeHandler for document processing This is called from FOTreeBuilder.startDocument() |
void |
startExternalDocument(ExternalDocument document)
Process the start of the external-document extension. |
void |
startPageSequence(PageSequence pageSequence)
|
void |
startRoot(Root root)
Called upon start of root element. |
void |
tryIDResolution(PageViewport pv)
Deprecated. use getIDTracker().tryIDResolution(pv) instead |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AreaTreeModel model
| Constructor Detail |
|---|
public AreaTreeHandler(FOUserAgent userAgent,
java.lang.String outputFormat,
java.io.OutputStream stream)
throws FOPException
userAgent - FOUserAgent object for processoutputFormat - the MIME type of the output format to use (ex.
"application/pdf").stream - OutputStream
FOPException - if the RenderPagesModel cannot be created| Method Detail |
|---|
protected void setupModel(FOUserAgent userAgent,
java.lang.String outputFormat,
java.io.OutputStream stream)
throws FOPException
userAgent - FOUserAgent object for processoutputFormat - the MIME type of the output format to use (ex.
"application/pdf").stream - OutputStream
FOPException - if the RenderPagesModel cannot be createdpublic AreaTreeModel getAreaTreeModel()
public LayoutManagerMaker getLayoutManagerMaker()
public IDTracker getIDTracker()
public FormattingResults getResults()
getResults in class FOEventHandlerpublic boolean isComplexScriptFeaturesEnabled()
public void startDocument()
throws org.xml.sax.SAXException
startDocument in class FOEventHandlerorg.xml.sax.SAXException - if there is an errorpublic void startRoot(Root root)
FOEventHandler
startRoot in class FOEventHandlerroot - elementpublic void startPageSequence(PageSequence pageSequence)
startPageSequence in class FOEventHandlerpageSequence - PageSequence that is starting.public void endPageSequence(PageSequence pageSequence)
endPageSequence in class FOEventHandlerpageSequence - the page sequence endingpublic void startExternalDocument(ExternalDocument document)
startExternalDocument in class FOEventHandlerdocument - the external-document nodepublic void endExternalDocument(ExternalDocument document)
endExternalDocument in class FOEventHandlerdocument - the external-document node
public void notifyPageSequenceFinished(AbstractPageSequence pageSequence,
int pageCount)
pageSequence - the page-sequence just finishedpageCount - The number of pages generated for the page-sequence
public void endDocument()
throws org.xml.sax.SAXException
endDocument in class FOEventHandlerorg.xml.sax.SAXException - if there is some errorpublic java.lang.String generatePageViewportKey()
@Deprecated
public void associateIDWithPageViewport(java.lang.String id,
PageViewport pv)
id - the property ID of the areapv - a page viewport that contains the area with this ID@Deprecated public void signalPendingID(java.lang.String id)
id - the id of the object being processed@Deprecated public void signalIDProcessed(java.lang.String id)
id - the id of the formatting object which was just finished@Deprecated public boolean alreadyResolvedID(java.lang.String id)
id - the id to check
@Deprecated public void tryIDResolution(PageViewport pv)
pv - page viewport whose ID refs to resolve@Deprecated public java.util.List<PageViewport> getPageViewportsContainingID(java.lang.String id)
id - the id to lookup
@Deprecated
public void addUnresolvedIDRef(java.lang.String idref,
Resolvable res)
idref - the idref whose target id has not yet been locatedres - the Resolvable object needing the idref to be resolved
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||