Class AFPRectanglePainter


  • public class AFPRectanglePainter
    extends AbstractAFPPainter
    A painter of rectangles in AFP
    • Constructor Detail

      • AFPRectanglePainter

        public AFPRectanglePainter​(AFPPaintingState paintingState,
                                   DataStream dataStream,
                                   AFPResourceManager resourceManager)
        Main constructor
        Parameters:
        paintingState - the AFP painting state
        dataStream - the AFP datastream
    • Method Detail

      • paint

        public void paint​(PaintingInfo paintInfo)
                   throws java.io.IOException
        Paints the painting item
        Specified by:
        paint in class AbstractAFPPainter
        Parameters:
        paintInfo - the painting information
        Throws:
        java.io.IOException - if an I/O error occurs
      • paintAlpha

        private void paintAlpha​(PaintingInfo paintInfo)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • buildImage

        private byte[] buildImage​(java.awt.Color color,
                                  int width,
                                  int height)
      • buildMaskImage

        private byte[] buildMaskImage​(java.awt.Color color,
                                      int width,
                                      int height)