|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.foray.core.FOrayTarget
public class FOrayTarget
This class acts as a bridge between the XML:FO parser and the formatting/rendering classes. It will queue PageSequences up until all the IDs required by them are satisfied, at which time it will render the pages.
StreamRenderer is created by Driver and called from FOTreeBuilder when a PageSequence is created, and AreaTree when a Page is formatted.
Constructor Summary | |
---|---|
FOrayTarget(FOrayDocument document,
org.axsl.output.OutputTarget outputTarget,
org.axsl.layout.Layout layout,
OutputStream outputStream)
Constructor. |
Method Summary | |
---|---|
void |
cleanup()
Closes the OutputStream, if any. |
void |
foComplete(org.axsl.fo.FoTreeEvent event)
|
void |
foDocumentComplete(org.axsl.fo.FoTreeEvent event)
|
void |
foPageSequenceComplete(org.axsl.fo.FoTreeEvent event)
|
org.axsl.area.AreaTreeFactory |
getAreaTreeFactory()
Return the AreaTreeFactory for this target. |
FOrayDocument |
getDocument()
Returns the parent document. |
org.axsl.font.FontConsumer |
getFontConsumer()
Return the FontConsumer for this target. |
org.axsl.font.FontServer |
getFontServer()
Return the FontServer for this target. |
org.axsl.layout.LayoutFactory |
getLayoutFactory()
Return the LayoutFactory for this target. |
org.axsl.layout.Layout |
getLayoutStrategy()
Return the LayoutStrategy for this target. |
org.apache.commons.logging.Log |
getLogger()
Returns the logger. |
OutputStream |
getOutputStream()
Return the OutputStream for this target. |
org.axsl.output.OutputTarget |
getOutputTarget()
Return the OutputTarget for this target. |
SessionConfig |
getSessionConfig()
Return the SessionConfig for this target. |
org.axsl.text.TextServer |
getTextServer()
Return the TextConsumer for this target. |
void |
pageComplete(org.axsl.area.AreaTreeEvent event)
|
void |
render(org.axsl.fo.fo.PageSequence pageSequence)
Outputs the PageSequence. |
void |
startRenderer()
Starts the output processing. |
void |
stopRenderer()
Cleans up after output processing. |
boolean |
wantsFoCompleteEvents()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FOrayTarget(FOrayDocument document, org.axsl.output.OutputTarget outputTarget, org.axsl.layout.Layout layout, OutputStream outputStream) throws FOrayException
document
- The parent document.outputTarget
- The output target to which the document should be
processed.layout
- The layout implementation responsible for laying the
document out.outputStream
- The output stream, if any, to which the document
should be written.
FOrayException
- For errors during document processing.Method Detail |
---|
public void startRenderer() throws FOrayException
FOrayException
- For errors during processing.public void stopRenderer() throws SAXException
SAXException
- For errors during cleanup.public void render(org.axsl.fo.fo.PageSequence pageSequence) throws FOrayException
pageSequence
- The page sequence to be processed.
FOrayException
- For errors during processing.public void pageComplete(org.axsl.area.AreaTreeEvent event)
pageComplete
in interface org.axsl.area.AreaTreeListener
public org.apache.commons.logging.Log getLogger()
public void foComplete(org.axsl.fo.FoTreeEvent event)
foComplete
in interface org.axsl.fo.FoTreeListener
public void foPageSequenceComplete(org.axsl.fo.FoTreeEvent event) throws org.axsl.fo.FoTreeException
foPageSequenceComplete
in interface org.axsl.fo.FoTreeListener
org.axsl.fo.FoTreeException
public void foDocumentComplete(org.axsl.fo.FoTreeEvent event) throws org.axsl.fo.FoTreeException
foDocumentComplete
in interface org.axsl.fo.FoTreeListener
org.axsl.fo.FoTreeException
public boolean wantsFoCompleteEvents()
wantsFoCompleteEvents
in interface org.axsl.fo.FoTreeListener
public org.axsl.font.FontConsumer getFontConsumer()
public org.axsl.font.FontServer getFontServer()
public org.axsl.text.TextServer getTextServer()
public OutputStream getOutputStream()
public org.axsl.output.OutputTarget getOutputTarget()
public SessionConfig getSessionConfig()
public org.axsl.layout.Layout getLayoutStrategy()
public void cleanup()
public FOrayDocument getDocument()
public org.axsl.area.AreaTreeFactory getAreaTreeFactory()
public org.axsl.layout.LayoutFactory getLayoutFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |