Bug 58644

Summary: Deprecate Sheet.setZoom(numerator, denominator), replace with Sheet.setZoom(scale)
Product: POI Reporter: Javen O'Neal <onealj>
Component: SS CommonAssignee: POI Developers List <dev>
Severity: enhancement    
Priority: P2    
Version: 3.14-dev   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description Javen O'Neal 2015-11-24 07:00:46 UTC
Sheet.setZoom(numerator, denominator) leaks too much information about how HSSFSheets save zoom level. This zoom function carried over into the XSSFSheet world, where it's inconvenient and clumsy.

The spreadsheet API should either use setZoom(int percent) or setZoom(double ratio). A percent (multiply zoom ratio by 100) is already implemented in XSSFSheet, so this seems like the natural pick.
Comment 1 Javen O'Neal 2015-11-24 08:27:07 UTC
Implemented in r1716048 and r1716053, updated docs in r1716049.