Package org.apache.fop.afp
Class AFPRectanglePainter
java.lang.Object
org.apache.fop.afp.AbstractAFPPainter
org.apache.fop.afp.AFPRectanglePainter
A painter of rectangles in AFP
-
Field Summary
FieldsFields inherited from class org.apache.fop.afp.AbstractAFPPainter
dataStream, log, paintingState
-
Constructor Summary
ConstructorsConstructorDescriptionAFPRectanglePainter
(AFPPaintingState paintingState, DataStream dataStream, AFPResourceManager resourceManager) Main constructor -
Method Summary
Modifier and TypeMethodDescriptionprivate byte[]
buildImage
(Color color, int width, int height) private byte[]
buildMaskImage
(Color color, int width, int height) void
paint
(PaintingInfo paintInfo) Paints the painting itemprivate void
paintAlpha
(PaintingInfo paintInfo)
-
Field Details
-
resourceManager
-
-
Constructor Details
-
AFPRectanglePainter
public AFPRectanglePainter(AFPPaintingState paintingState, DataStream dataStream, AFPResourceManager resourceManager) Main constructor- Parameters:
paintingState
- the AFP painting statedataStream
- the AFP datastream
-
-
Method Details
-
paint
Paints the painting item- Specified by:
paint
in classAbstractAFPPainter
- Parameters:
paintInfo
- the painting information- Throws:
IOException
- if an I/O error occurs
-
paintAlpha
- Throws:
IOException
-
buildImage
-
buildMaskImage
-