Class AFPRectanglePainter

java.lang.Object
org.apache.fop.afp.AbstractAFPPainter
org.apache.fop.afp.AFPRectanglePainter

public class AFPRectanglePainter extends AbstractAFPPainter
A painter of rectangles in AFP
  • Field Details

  • Constructor Details

    • AFPRectanglePainter

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

    • paint

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

      private void paintAlpha(PaintingInfo paintInfo) throws IOException
      Throws:
      IOException
    • buildImage

      private byte[] buildImage(Color color, int width, int height)
    • buildMaskImage

      private byte[] buildMaskImage(Color color, int width, int height)