Example usage for org.apache.poi.xssf.usermodel XSSFDrawing getRelationById

List of usage examples for org.apache.poi.xssf.usermodel XSSFDrawing getRelationById

Introduction

In this page you can find the example usage for org.apache.poi.xssf.usermodel XSSFDrawing getRelationById.

Prototype

public final POIXMLDocumentPart getRelationById(String id) 

Source Link

Document

Returns the target POIXMLDocumentPart , where a PackageRelationship is set from the PackagePart of this POIXMLDocumentPart to the PackagePart of the target POIXMLDocumentPart with a PackageRelationship#getId() matching the given parameter value.

Usage

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

License:Open Source License

/**
 * Returns a chart or null if this frame doesn't have one.
 *///from   w  ww .j  a  va2 s . co m
private static XSSFChart getChartForFrame(XSSFDrawing drawing, XSSFGraphicFrame frame) {
    // the chart is supposed to be there if an ID is found
    return (XSSFChart) drawing.getRelationById(getChartId(frame));
}