org.apache.fop.afp

## 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 Summary

    - ### Fields inherited from class org.apache.fop.afp.AbstractAFPPainter

      `dataStream, log, paintingState`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AFPRectanglePainter(AFPPaintingState paintingState, DataStream dataStream, AFPResourceManager resourceManager)` Main constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `paint(PaintingInfo paintInfo)` Paints the painting item

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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 IOException

      Paints the painting item
      Specified by:
        `paint` in class `AbstractAFPPainter`
      Parameters:
        `paintInfo` - the painting information
      Throws:
        `IOException` - if an I/O error occurs

Copyright © 2023 Apache Software Foundation. All rights reserved.