Class AbstractRenderer

  • All Implemented Interfaces:
    Component, Renderer

    public abstract class AbstractRenderer
    extends AbstractComponent
    implements Renderer
    Abstract renderer implementation. Contains methods that are common to the different renderer types
    • Constructor Detail

      • AbstractRenderer

        public AbstractRenderer()
    • 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 interface Renderer
        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 interface Renderer
        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 render
        end - Index of the last page to render
        Returns:
        a List of Image objects
        Throws:
        java.io.IOException
        RendererException
        DocumentException