public final class XSSFChart extends XDDFChart implements Chart, ChartAxisFactory
POIXMLDocumentPart.RelationPartaxes, chart, chartSpace| 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
|
XSSFCategoryAxis |
createCategoryAxis(AxisPosition pos)
Deprecated.
|
XSSFDateAxis |
createDateAxis(AxisPosition pos)
Deprecated.
|
XSSFValueAxis |
createValueAxis(AxisPosition pos)
Deprecated.
|
java.util.List<? extends XSSFChartAxis> |
getAxis()
Deprecated.
use
XDDFChart.getAxes() instead |
XSSFChart |
getChartAxisFactory()
Deprecated.
|
XSSFChartDataFactory |
getChartDataFactory()
Deprecated.
|
protected POIXMLFactory |
getChartFactory() |
protected POIXMLRelation |
getChartRelation() |
protected POIXMLRelation |
getChartWorkbookRelation() |
XSSFGraphicFrame |
getGraphicFrame()
Returns the parent graphic frame.
|
XSSFManualLayout |
getManualLayout()
Deprecated.
|
XSSFChartLegend |
getOrCreateLegend()
Deprecated.
|
java.lang.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.
|
void |
plot(ChartData data,
ChartAxis... chartAxis)
Deprecated.
|
protected void |
setGraphicFrame(XSSFGraphicFrame frame)
Sets the parent graphic frame.
|
void |
setTitleFormula(java.lang.String formula)
Set the formula expression to use for the chart title
|
createCategoryAxis, createData, createDateAxis, createRelationshipInChart, createValueAxis, deleteLegend, deleteShapeProperties, displayBlanksAs, fillSheet, findDefinedParagraphProperty, findDefinedRunProperty, formatRange, getAxes, getChartIndex, getChartSeries, getCTChart, getCTChartSpace, getCTPlotArea, getFormattedTitle, getOrAddLegend, getOrAddManualLayout, getOrAddShapeProperties, getTitle, getTitleOverlay, getWorkbook, importContent, isPlotOnlyVisibleCells, plot, saveWorkbook, setAutoTitleDeleted, setBackWall, setChartIndex, setExternalId, setFloor, setPlotOnlyVisibleCells, setSheetTitle, setSideWall, setTitleOverlay, setTitleText, setValueRange, setWorkbook_invokeOnDocumentRead, addRelation, createRelationship, createRelationship, createRelationship, getNextPartNumber, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, getTargetPart, isCommited, onDocumentCreate, onDocumentRead, onDocumentRemove, onSave, prepareForCommit, read, rebase, removeRelation, removeRelation, removeRelation, setCommited, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdeleteLegendprotected XSSFChart()
protected XSSFChart(PackagePart part) throws java.io.IOException, org.apache.xmlbeans.XmlException
part - the package part holding the chart data, the content type must
be
application/vnd.openxmlformats-officedocument.drawingml.chart+xmljava.io.IOExceptionorg.apache.xmlbeans.XmlExceptionprotected POIXMLRelation getChartRelation()
getChartRelation in class XDDFChartprotected POIXMLRelation getChartWorkbookRelation()
getChartWorkbookRelation in class XDDFChartprotected POIXMLFactory getChartFactory()
getChartFactory in class XDDFChartprotected void commit()
throws java.io.IOException
XDDFChartpublic XSSFGraphicFrame getGraphicFrame()
protected void setGraphicFrame(XSSFGraphicFrame frame)
@Deprecated @Removal(version="4.2") public XSSFChartDataFactory getChartDataFactory()
getChartDataFactory in interface Chart@Deprecated @Removal(version="4.2") public XSSFChart getChartAxisFactory()
getChartAxisFactory in interface Chart@Deprecated @Removal(version="4.2") public void plot(ChartData data, ChartAxis... chartAxis)
Chart@Deprecated @Removal(version="4.2") public XSSFValueAxis createValueAxis(AxisPosition pos)
createValueAxis in interface ChartAxisFactory@Deprecated @Removal(version="4.2") public XSSFCategoryAxis createCategoryAxis(AxisPosition pos)
createCategoryAxis in interface ChartAxisFactory@Deprecated @Removal(version="4.2") public XSSFDateAxis createDateAxis(AxisPosition pos)
createDateAxis in interface ChartAxisFactory@Deprecated @Removal(version="4.2") public java.util.List<? extends XSSFChartAxis> getAxis()
XDDFChart.getAxes() instead@Deprecated @Removal(version="4.2") public XSSFManualLayout getManualLayout()
ManuallyPositionablegetManualLayout in interface ManuallyPositionablepublic XSSFRichTextString getTitleText()
public java.lang.String getTitleFormula()
public void setTitleFormula(java.lang.String formula)
formula - @Deprecated @Removal(version="4.2") public XSSFChartLegend getOrCreateLegend()
getOrCreateLegend in interface ChartCopyright 2018 The Apache Software Foundation or its licensors, as applicable.