Bug 63017

Summary: Remove rows from a XSLFTable
Product: POI Reporter: Andreas Beeker <kiwiwings>
Component: XSLFAssignee: POI Developers List <dev>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 4.0.x-dev   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Andreas Beeker 2018-12-18 21:59:29 UTC
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()
Comment 1 Andreas Beeker 2018-12-18 22:53:24 UTC
Applied via r1849244