org.apache.poi.hssf.usermodel.HSSFSheet.getDrawingEscherAggregate()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(96)

本文整理了Java中org.apache.poi.hssf.usermodel.HSSFSheet.getDrawingEscherAggregate()方法的一些代码示例,展示了HSSFSheet.getDrawingEscherAggregate()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HSSFSheet.getDrawingEscherAggregate()方法的具体详情如下:
包路径:org.apache.poi.hssf.usermodel.HSSFSheet
类名称:HSSFSheet
方法名:getDrawingEscherAggregate

HSSFSheet.getDrawingEscherAggregate介绍

[英]Returns the agregate escher records for this sheet, it there is one. WARNING - calling this will trigger a parsing of the associated escher records. Any that aren't supported (such as charts and complex drawing types) will almost certainly be lost or corrupted when written out.
[中]返回此工作表的agregate escher记录,如果有。警告-调用此命令将触发对相关escher记录的解析。任何不受支持的内容(如图表和复杂图形类型)在写出时几乎肯定会丢失或损坏。

代码示例

代码示例来源:origin: com.haulmont.yarg/yarg

/**
 * Returns EscherAggregate from sheet
 *
 * @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;
}

代码示例来源:origin: cuba-platform/yarg

/**
 * Returns EscherAggregate from sheet
 *
 * @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;
}

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

/**
 * Returns the top-level drawing patriach, if there is
 *  one.
 * This will hold any graphics or charts for the sheet.
 * WARNING - calling this will trigger a parsing of the
 *  associated escher records. Any that aren't supported
 *  (such as charts and complex drawing types) will almost
 *  certainly be lost or corrupted when written out. Only
 *  use this with simple drawings, otherwise call
 *  {@link HSSFSheet#createDrawingPatriarch()} and
 *  start from scratch!
 */
public HSSFPatriarch getDrawingPatriarch() {
  if(_patriarch != null) return _patriarch;
  
  EscherAggregate agg = getDrawingEscherAggregate();
  if(agg == null) return null;
  _patriarch = new HSSFPatriarch(this, agg);
  agg.setPatriarch(_patriarch);
  // Have it process the records into high level objects
  //  as best it can do (this step may eat anything
  //  that isn't supported, you were warned...)
  agg.convertRecordsToUserModel();
  // Return what we could cope with
  return _patriarch;
}

相关文章

微信公众号

最新文章

更多

HSSFSheet类方法