AbstractAFPPainter createRectanglePainter() {
if (AFPShadingMode.DITHERED.equals(this.shadingMode)) {
return new AFPDitheredRectanglePainter(
this.paintingState, this.dataStream, this.resourceManager);
} else {
return new AFPRectanglePainter(
this.paintingState, this.dataStream);
}
}