List of usage examples for org.apache.poi.xssf.usermodel XSSFDrawing getRelationById
public final POIXMLDocumentPart getRelationById(String id)
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)); }