Bug 63017 - Remove rows from a XSLFTable
Summary: Remove rows from a XSLFTable
Alias: None
Product: POI
Classification: Unclassified
Component: XSLF (show other bugs)
Version: 4.0.x-dev
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2018-12-18 21:59 UTC by Andreas Beeker
Modified: 2018-12-18 22:53 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
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