Package 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 Modifier and Type Field Description private AFPResourceManagerresourceManager-
Fields inherited from class org.apache.fop.afp.AbstractAFPPainter
dataStream, log, paintingState
-
-
Constructor Summary
Constructors Constructor Description AFPRectanglePainter(AFPPaintingState paintingState, DataStream dataStream, AFPResourceManager resourceManager)Main constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private byte[]buildImage(java.awt.Color color, int width, int height)private byte[]buildMaskImage(java.awt.Color color, int width, int height)voidpaint(PaintingInfo paintInfo)Paints the painting itemprivate voidpaintAlpha(PaintingInfo paintInfo)
-
-
-
Field Detail
-
resourceManager
private AFPResourceManager resourceManager
-
-
Constructor Detail
-
AFPRectanglePainter
public AFPRectanglePainter(AFPPaintingState paintingState, DataStream dataStream, AFPResourceManager resourceManager)
Main constructor- Parameters:
paintingState- the AFP painting statedataStream- the AFP datastream
-
-
Method Detail
-
paint
public void paint(PaintingInfo paintInfo) throws java.io.IOException
Paints the painting item- Specified by:
paintin classAbstractAFPPainter- 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)
-
-