Example usage for org.apache.poi.ss.usermodel Sheet setDefaultRowHeightInPoints

List of usage examples for org.apache.poi.ss.usermodel Sheet setDefaultRowHeightInPoints

Introduction

In this page you can find the example usage for org.apache.poi.ss.usermodel Sheet setDefaultRowHeightInPoints.

Prototype

void setDefaultRowHeightInPoints(float height);

Source Link

Document

Set the default row height for the sheet (if the rows do not define their own height) in points

Usage

From source file:com.vaadin.addon.spreadsheet.SpreadsheetFactory.java

License:Open Source License

private static void setDefaultRowHeight(Spreadsheet spreadsheet, final Sheet sheet) {
    float defaultRowHeightInPoints = sheet.getDefaultRowHeightInPoints();
    if (defaultRowHeightInPoints <= 0) {
        sheet.setDefaultRowHeightInPoints(DEFAULT_ROW_HEIGHT_POINTS);
        spreadsheet.getState().defRowH = DEFAULT_ROW_HEIGHT_POINTS;
    } else {//from   w ww.j av  a 2 s .c om
        spreadsheet.getState().defRowH = defaultRowHeightInPoints;
    }
}