Example usage for org.apache.poi.hssf.usermodel HSSFSheet getDrawingEscherAggregate

List of usage examples for org.apache.poi.hssf.usermodel HSSFSheet getDrawingEscherAggregate

Introduction

In this page you can find the example usage for org.apache.poi.hssf.usermodel HSSFSheet getDrawingEscherAggregate.

Prototype

public EscherAggregate getDrawingEscherAggregate() 

Source Link

Document

Returns the agregate escher records for this sheet, it there is one.

Usage

From source file:com.haulmont.yarg.formatters.impl.XLSFormatter.java

License:Apache License

/**
 * Returns EscherAggregate from sheet//from   w  w  w  .ja  v a  2  s  . com
 *
 * @param sheet - HSSFSheet
 * @return - EscherAggregate from sheet
 */
protected EscherAggregate getEscherAggregate(HSSFSheet sheet) {
    EscherAggregate agg = sheetToEscherAggregate.get(sheet.getSheetName());
    if (agg == null) {
        agg = sheet.getDrawingEscherAggregate();
        sheetToEscherAggregate.put(sheet.getSheetName(), agg);
    }
    return agg;
}