public final class XSSFChart extends XDDFChart
POIXMLDocumentPart.RelationPart
axes, chart, chartSpace, DEFAULT_HEIGHT, DEFAULT_WIDTH, DEFAULT_X, DEFAULT_Y
Modifier | Constructor and Description |
---|---|
protected |
XSSFChart()
Create a new SpreadsheetML chart
(创建一个新的 SpreadsheetML 图表)
|
protected |
XSSFChart(PackagePart part)
Construct a SpreadsheetML chart from a package part.
(从包部件构造一个 SpreadsheetML 图表。)
|
Modifier and Type | Method and Description |
---|---|
protected void |
commit()
save chart xml
(保存图表 xml)
|
protected POIXMLFactory |
getChartFactory() |
protected POIXMLRelation |
getChartRelation() |
protected POIXMLRelation |
getChartWorkbookRelation() |
XSSFGraphicFrame |
getGraphicFrame()
Returns the parent graphic frame.
(返回父图形框架。)
|
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.
(返回标题静态文本,如果没有设置,则返回 null。)
|
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, removeTitle, 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, isCommitted, onDocumentCreate, onDocumentRead, onDocumentRemove, onSave, prepareForCommit, read, rebase, removeRelation, removeRelation, removeRelation, setCommitted, toString
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
(part - 包含图表数据的包部分,内容类型必须是 application/vnd.openxmlformats-officedocument.drawingml.chart+xml)
java.io.IOException
(java.io.IOException)
org.apache.xmlbeans.XmlException
(org.apache.xmlbeans.XmlException)
protected POIXMLRelation getChartRelation()
getChartRelation
in class
XDDFChart
(类 XDDFChart 中的 getChartRelation)
protected POIXMLRelation getChartWorkbookRelation()
getChartWorkbookRelation
in class
XDDFChart
(XDDFChart 类中的 getChartWorkbookRelation)
protected POIXMLFactory getChartFactory()
getChartFactory
in class
XDDFChart
(类 XDDFChart 中的 getChartFactory)
protected void commit() throws java.io.IOException
XDDFChart
public XSSFGraphicFrame getGraphicFrame()
protected void setGraphicFrame(XSSFGraphicFrame frame)
public XSSFRichTextString getTitleText()
public java.lang.String getTitleFormula()
public void setTitleFormula(java.lang.String formula)
formula
-
(公式 -)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.