* {@inheritDoc}
*/
protected void drawRectangle(final int x, final int y, final int w,
final int h, final Color strokeColor, final Color fillColor)
throws GalleyVisitorException {
PdfPathPaint strokePaint = null;
if (strokeColor != null) {
strokePaint = this.getPDFDocument().createPdfColor(strokeColor);
}
PdfPathPaint fillPaint = null;
if (fillColor != null) {
fillPaint = this.getPDFDocument().createPdfColor(fillColor);
}
final Rectangle2D.Float rectangle = new Rectangle2D.Float(toPoints(x),
toPoints(y), toPoints(w), toPoints(h));