public final class XSSFChart extends XDDFChart implements Chart, ChartAxisFactory
POIXMLDocumentPart.RelationPart
axes, chart, 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
|
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
|
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, 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, isCommitted, onDocumentCreate, onDocumentRead, onDocumentRemove, onSave, prepareForCommit, read, rebase, removeRelation, removeRelation, removeRelation, setCommited, setCommitted, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
deleteLegend
protected 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+xml
java.io.IOException
org.apache.xmlbeans.XmlException
protected POIXMLRelation getChartRelation()
getChartRelation
in class XDDFChart
protected POIXMLRelation getChartWorkbookRelation()
getChartWorkbookRelation
in class XDDFChart
protected POIXMLFactory getChartFactory()
getChartFactory
in class XDDFChart
protected void commit() throws java.io.IOException
XDDFChart
public 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()
ManuallyPositionable
getManualLayout
in interface ManuallyPositionable
public 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 Chart
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.