public final class XSSFChart extends XDDFChart
POIXMLDocumentPart.RelationPartaxes, chartSpace, DEFAULT_HEIGHT, DEFAULT_WIDTH, DEFAULT_X, DEFAULT_Y| Modifier | Constructor and Description |
|---|---|
protected |
XSSFChart()
Create a new SpreadsheetML chart
|
protected |
XSSFChart(PackagePart part)
Construct a SpreadsheetML chart from a package part.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
commit()
save chart xml
|
protected POIXMLFactory |
getChartFactory() |
protected POIXMLRelation |
getChartRelation() |
protected POIXMLRelation |
getChartWorkbookRelation() |
XSSFGraphicFrame |
getGraphicFrame()
Returns the parent graphic frame.
|
String |
getTitleFormula()
Get the chart title formula expression if there is one
|
XSSFRichTextString |
getTitleText()
Returns the title static text, or null if none is set.
|
protected void |
setGraphicFrame(XSSFGraphicFrame frame)
Sets the parent graphic frame.
|
void |
setTitleFormula(String formula)
Set the formula expression to use for the chart title
|
clear, clearChartSeries, createCategoryAxis, createData, createDateAxis, createRelationshipInChart, createSeriesAxis, createValueAxis, deleteLegend, deleteShapeProperties, displayBlanksAs, fillSheet, findDefinedParagraphProperty, findDefinedRunProperty, formatRange, getAxes, getChartIndex, getChartSeries, getCTChart, getCTChartSpace, getCTPlotArea, getFormattedTitle, getOrAddLegend, getOrAddManualLayout, getOrAddShapeProperties, getOrAddView3D, getTitle, getTitleOverlay, getWorkbook, importContent, incrementSeriesCount, isPlotOnlyVisibleCells, plot, removeTitle, replaceReferences, saveWorkbook, setAutoTitleDeleted, setBackWall, setChartIndex, setExternalId, setFloor, setPlotOnlyVisibleCells, setSheetTitle, setSideWall, setTitleOverlay, setTitleText, setValueRange, setWorkbook_invokeOnDocumentRead, addRelation, createHyperlink, createRelationship, createRelationship, createRelationship, getNextPartNumber, getPackagePart, getParent, getReferenceRelationship, getReferenceRelationships, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, getTargetPart, isCommitted, onDocumentCreate, onDocumentRead, onDocumentRemove, onSave, prepareForCommit, read, rebase, removeReferenceRelationship, removeRelation, removeRelation, removeRelation, setCommitted, toStringprotected XSSFChart()
protected XSSFChart(PackagePart part) throws IOException, org.apache.xmlbeans.XmlException
part - the package part holding the chart data, the content type must
be
application/vnd.openxmlformats-officedocument.drawingml.chart+xmlIOExceptionorg.apache.xmlbeans.XmlExceptionprotected POIXMLRelation getChartRelation()
getChartRelation in class XDDFChartprotected POIXMLRelation getChartWorkbookRelation()
getChartWorkbookRelation in class XDDFChartprotected POIXMLFactory getChartFactory()
getChartFactory in class XDDFChartprotected void commit()
throws IOException
XDDFChartcommit in class XDDFChartIOException - a subclass may throw an IOException if the changes can't be committedpublic XSSFGraphicFrame getGraphicFrame()
protected void setGraphicFrame(XSSFGraphicFrame frame)
public XSSFRichTextString getTitleText()
public String getTitleFormula()
public void setTitleFormula(String formula)