org.foray.render.awt
Class AWTPrintRenderer

java.lang.Object
  extended by org.foray.output.OutputTarget
      extended by org.foray.render.Renderer
          extended by org.foray.render.awt.AWTRenderer
              extended by 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.


Field Summary
 
Fields inherited from class org.foray.render.Renderer
SHADING_WEIGHT_BLUE, SHADING_WEIGHT_GREEN, SHADING_WEIGHT_RED
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Fields inherited from interface java.awt.print.Pageable
UNKNOWN_NUMBER_OF_PAGES
 
Constructor Summary
AWTPrintRenderer(org.apache.commons.logging.Log logger, org.axsl.output.OutputConfiguration renderConfig, PrinterJob printerJob)
          Constructor.
 
Method Summary
 void renderPage(org.axsl.galley.Page page)
          Renders a given page.
 void stopOutput()
           
 
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
 

Constructor Detail

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.
Method Detail

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.