org.foray.render.awt
Class AWTPrintRenderer
java.lang.Object
org.foray.output.OutputTarget
org.foray.render.Renderer
org.foray.render.awt.AWTRenderer
org.foray.render.awt.AWTPrintRenderer
- All Implemented Interfaces:
- Pageable, Printable, org.axsl.galley.RenderVisitor, org.axsl.output.OutputTarget, org.axsl.output.Renderer
public class AWTPrintRenderer
- extends AWTRenderer
A specialized AWT Renderer that prints the document.
|
Constructor Summary |
AWTPrintRenderer(org.apache.commons.logging.Log logger,
org.axsl.output.OutputConfiguration renderConfig,
PrinterJob printerJob)
Constructor. |
| Methods inherited from class org.foray.render.awt.AWTRenderer |
addRect, addRect, addRect, drawFrame, drawGraphic, drawLine, drawRectangle, getFontSources, getLastRenderedPage, getNumberOfPages, getOutputConfiguration, getPageCount, getPageFormat, getPageNumber, getPrintable, getScaleFactor, markBorder, outputStreamRequired, print, removePage, render, render, render, render, render, render, render, render, renderSVGDocument, renderTextDecoration, renderTextSegment, resetTextCursor, setComponent, setPageHeight, setPageNumber, setPageWidth, setScaleFactor, startOutput |
| Methods inherited from class org.foray.render.Renderer |
colorToFloat, convertMillipointRectangle, getAreaTree, getPixelsPerInch, markBackground, render, render, render, render, render, render, render, render, render, render, render, render, render, renderChildren, renderDocumentNodes, renderRegions, setGalley, shadingPercent, toPoints |
| Methods inherited from class org.foray.output.OutputTarget |
getApplicationName, getApplicationNameShort, getApplicationVersion, getDeveloperURLShort, getFontConsumer, getLogger, getOutputStream, getStrokeSVGText, setApplicationName, setApplicationNameShort, setApplicationVersion, setDeveloperUrlShort, setFontConsumer, setOutputStream, setStrokeText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.axsl.output.OutputTarget |
setApplicationName, setApplicationNameShort, setApplicationVersion, setDeveloperUrlShort, setFontConsumer, setOutputStream, setStrokeText |
AWTPrintRenderer
public AWTPrintRenderer(org.apache.commons.logging.Log logger,
org.axsl.output.OutputConfiguration renderConfig,
PrinterJob printerJob)
- Constructor.
- Parameters:
logger - The logger.renderConfig - The configuration for this renderer.printerJob - The printer job to which the output should be sent.
stopOutput
public void stopOutput()
throws org.axsl.output.OutputException
- Specified by:
stopOutput in interface org.axsl.output.OutputTarget- Overrides:
stopOutput in class AWTRenderer
- Throws:
org.axsl.output.OutputException
renderPage
public void renderPage(org.axsl.galley.Page page)
throws org.axsl.galley.GalleyVisitorException
- Description copied from class:
AWTRenderer
- Renders a given page.
- Overrides:
renderPage in class AWTRenderer
- Parameters:
page - The page to be rendered.
- Throws:
org.axsl.galley.GalleyVisitorException - For errors during rendering.
Copyright © 2017. All rights reserved.