Package org.ghost4j.renderer
Class AbstractRenderer
- java.lang.Object
-
- org.ghost4j.AbstractComponent
-
- org.ghost4j.renderer.AbstractRenderer
-
public abstract class AbstractRenderer extends AbstractComponent implements Renderer
Abstract renderer implementation. Contains methods that are common to the different renderer types
-
-
Field Summary
-
Fields inherited from class org.ghost4j.AbstractComponent
supportedDocumentClasses
-
-
Constructor Summary
Constructors Constructor Description AbstractRenderer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.List<java.awt.Image>
render(Document document)
Renders a given document an outputs result as a list of Image objects (on image per page).java.util.List<java.awt.Image>
render(Document document, int begin, int end)
Renders pages of a given document an outputs result as a list of Image objects (on image per page).protected abstract java.util.List<java.awt.Image>
run(Document document, int begin, int end)
-
Methods inherited from class org.ghost4j.AbstractComponent
assertDeviceSupported, assertDocumentSupported, copySettings, extractSettings, isDeviceSupported
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ghost4j.Component
copySettings, extractSettings
-
-
-
-
Method Detail
-
render
public java.util.List<java.awt.Image> render(Document document) throws java.io.IOException, RendererException, DocumentException
Description copied from interface:Renderer
Renders a given document an outputs result as a list of Image objects (on image per page).- Specified by:
render
in interfaceRenderer
- Parameters:
document
- Document to render. Document type may or may no be supported (support left to the render final implementation).- Returns:
- a List of Image objects
- Throws:
java.io.IOException
RendererException
DocumentException
-
render
public java.util.List<java.awt.Image> render(Document document, int begin, int end) throws java.io.IOException, RendererException, DocumentException
Description copied from interface:Renderer
Renders pages of a given document an outputs result as a list of Image objects (on image per page).- Specified by:
render
in interfaceRenderer
- Parameters:
document
- Document to render. Document type may or may no be supported (support left to the render final implementation).begin
- Index of the first page to renderend
- Index of the last page to render- Returns:
- a List of Image objects
- Throws:
java.io.IOException
RendererException
DocumentException
-
run
protected abstract java.util.List<java.awt.Image> run(Document document, int begin, int end) throws java.io.IOException, RendererException, DocumentException
- Throws:
java.io.IOException
RendererException
DocumentException
-
-