To calculate the needed space for a table and shift a row to the next slide, it might be necessary to remove an added row, therefore a new XSLFTable.removeRow(int rowIndex) has been added. The anchor calculation can be triggered via XSLFTable.updateCellAnchor(), which is now public and changes also the table anchor. Find the corresponding test under TestXSLFTable.testResize(). Furthermore I've discovered, that setting graphics2d.setPaint(null) has no effect, therefore this is now replaced by returning a transparent paint on DrawPaint.getPaint() which is usually followed by graphics2d.setPaint()
Applied via r1849244