Class PrintRendererConfigurator

    • Method Detail

      • getRendererConfig

        protected RendererConfig getRendererConfig​(IFDocumentHandler documentHandler)
                                            throws FOPException
        Returns the renderer configuration data for a specific renderer.
        Parameters:
        documentHandler - the document handler
        Returns:
        the renderer configuration data
        Throws:
        FOPException - if an error occurs
      • getRendererConfig

        protected RendererConfig getRendererConfig​(java.lang.String mimeType)
                                            throws FOPException
        gets the renderer configuration data for a specific renderer.
        Parameters:
        mimeType - the MIME type
        Returns:
        the renderer configuration data
        Throws:
        FOPException - if an error occurs
      • getRendererConfig

        protected RendererConfig getRendererConfig​(Renderer renderer)
                                            throws FOPException
        gets the renderer configuration data for a specific renderer.
        Parameters:
        renderer - the renderer
        Returns:
        the renderer configuration data
        Throws:
        FOPException - if an error occurs
      • configure

        public void configure​(Renderer renderer)
                       throws FOPException
        Builds a list of EmbedFontInfo objects for use with the setup() method.
        Parameters:
        renderer - print renderer
        Throws:
        FOPException - if something's wrong with the config data
      • setupFontInfo

        public void setupFontInfo​(java.lang.String mimeType,
                                  FontInfo fontInfo)
                           throws FOPException
        Sets up the FontInfo object for the IFDocumentHandler.
        Specified by:
        setupFontInfo in interface IFDocumentHandlerConfigurator
        Parameters:
        mimeType - the MIME type of the document handler
        fontInfo - the font info object to set up
        Throws:
        FOPException - if an error occurs while configuring the object
      • getDefaultFontCollection

        protected abstract java.util.List<FontCollection> getDefaultFontCollection()
      • getCustomFontCollection

        protected FontCollection getCustomFontCollection​(InternalResourceResolver resolver,
                                                         java.lang.String mimeType)
                                                  throws FOPException
        Returns the font collection for custom configured fonts.
        Parameters:
        resolver - the resource resolver
        mimeType - the renderer MIME type
        Returns:
        the font collection
        Throws:
        FOPException - if an error occurs
      • createCollectionFromFontList

        protected FontCollection createCollectionFromFontList​(InternalResourceResolver resolver,
                                                              java.util.List<EmbedFontInfo> fontList)
        Creates the font collection given a list of embedded font infomation.
        Parameters:
        resolver - the resource resolver
        fontList - the embedded font infomation
        Returns:
        the font collection