Class AbstractAFPImageHandlerRawStream

    • Constructor Detail

      • AbstractAFPImageHandlerRawStream

        public AbstractAFPImageHandlerRawStream()
    • Method Detail

      • setAdditionalParameters

        protected void setAdditionalParameters​(AFPDataObjectInfo imageObjectInfo,
                                               org.apache.xmlgraphics.image.loader.impl.ImageRawStream image)
        Sets additional parameters on the image object info being built. By default, this method does nothing but it can be overridden to provide additional functionality.
        Parameters:
        imageObjectInfo - the image object info being built
        image - the image being processed
      • updateDataObjectInfo

        private void updateDataObjectInfo​(AFPDataObjectInfo dataObjectInfo,
                                          org.apache.xmlgraphics.image.loader.impl.ImageRawStream rawStream,
                                          AFPResourceManager resourceManager)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • handleImage

        public void handleImage​(RenderingContext context,
                                org.apache.xmlgraphics.image.loader.Image image,
                                java.awt.Rectangle pos)
                         throws java.io.IOException
        Handles the given Image instance painting it at the indicated position in the output format being generated.
        Specified by:
        handleImage in interface ImageHandler
        Parameters:
        context - the rendering context
        image - the image to be handled
        pos - the position and scaling of the image relative to the origin point of the current viewport (in millipoints)
        Throws:
        java.io.IOException - if an I/O error occurs