if (cell.isUseVariableBorders()) {
Rectangle borderRect = new Rectangle(cell.getLeft() + xPos, cell
.getTop()
- maxHeight + yPos, cell.getRight() + xPos, cell.getTop()
+ yPos);
borderRect.cloneNonPositionParameters(cell);
borderRect.setBackgroundColor(null);
lines.rectangle(borderRect);
} else {
// the width is set to the width of the element
if (cell.getBorderWidth() != Rectangle.UNDEFINED) {