Package org.apache.poi.xssf.usermodel
Class XSSFChart
- java.lang.Object
 - 
- org.apache.poi.ooxml.POIXMLDocumentPart
 - 
- org.apache.poi.xddf.usermodel.chart.XDDFChart
 - 
- org.apache.poi.xssf.usermodel.XSSFChart
 
 
 
 
- 
- All Implemented Interfaces:
 Chart,ChartAxisFactory,ManuallyPositionable,org.apache.poi.xddf.usermodel.text.TextContainer
public final class XSSFChart extends org.apache.poi.xddf.usermodel.chart.XDDFChart implements Chart, ChartAxisFactory
Represents a SpreadsheetML Chart 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from class org.apache.poi.ooxml.POIXMLDocumentPart
POIXMLDocumentPart.RelationPart 
 - 
 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description XSSFCategoryAxiscreateCategoryAxis(AxisPosition pos)Deprecated.XSSFDateAxiscreateDateAxis(AxisPosition pos)Deprecated.XSSFValueAxiscreateValueAxis(AxisPosition pos)Deprecated.java.util.List<? extends XSSFChartAxis>getAxis()Deprecated.useXDDFChart.getAxes()insteadXSSFChartgetChartAxisFactory()Deprecated.XSSFChartDataFactorygetChartDataFactory()Deprecated.XSSFGraphicFramegetGraphicFrame()Returns the parent graphic frame.XSSFManualLayoutgetManualLayout()Deprecated.XSSFChartLegendgetOrCreateLegend()Deprecated.java.lang.StringgetTitleFormula()Get the chart title formula expression if there is oneXSSFRichTextStringgetTitleText()Returns the title static text, or null if none is set.voidplot(ChartData data, ChartAxis... chartAxis)Deprecated.voidsetTitleFormula(java.lang.String formula)Set the formula expression to use for the chart title- 
Methods inherited from class org.apache.poi.xddf.usermodel.chart.XDDFChart
clear, clearChartSeries, createCategoryAxis, createData, createDateAxis, createRelationshipInChart, createSeriesAxis, createValueAxis, deleteLegend, deleteShapeProperties, displayBlanksAs, findDefinedParagraphProperty, findDefinedRunProperty, formatRange, getAxes, getChartSeries, getCTChart, getCTChartSpace, getFormattedTitle, getOrAddLegend, getOrAddManualLayout, getOrAddShapeProperties, getOrAddView3D, getTitle, getTitleOverlay, getWorkbook, importContent, isPlotOnlyVisibleCells, plot, saveWorkbook, setAutoTitleDeleted, setBackWall, setChartIndex, setExternalId, setFloor, setPlotOnlyVisibleCells, setSheetTitle, setSideWall, setTitleOverlay, setTitleText, setValueRange, setWorkbook 
- 
Methods inherited from class org.apache.poi.ooxml.POIXMLDocumentPart
_invokeOnDocumentRead, addRelation, createRelationship, createRelationship, createRelationship, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, isCommited, setCommited, toString 
- 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface org.apache.poi.ss.usermodel.Chart
deleteLegend 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getGraphicFrame
public XSSFGraphicFrame getGraphicFrame()
Returns the parent graphic frame.- Returns:
 - the graphic frame this chart belongs to
 
 
- 
getChartDataFactory
@Deprecated @Removal(version="4.2") public XSSFChartDataFactory getChartDataFactory()
Deprecated.- Specified by:
 getChartDataFactoryin interfaceChart- Returns:
 - an appropriate ChartDataFactory implementation
 
 
- 
getChartAxisFactory
@Deprecated @Removal(version="4.2") public XSSFChart getChartAxisFactory()
Deprecated.- Specified by:
 getChartAxisFactoryin interfaceChart- Returns:
 - an appropriate ChartAxisFactory implementation
 
 
- 
plot
@Deprecated @Removal(version="4.2") public void plot(ChartData data, ChartAxis... chartAxis)
Deprecated.Description copied from interface:ChartPlots specified data on the chart. 
- 
createValueAxis
@Deprecated @Removal(version="4.2") public XSSFValueAxis createValueAxis(AxisPosition pos)
Deprecated.- Specified by:
 createValueAxisin interfaceChartAxisFactory- Returns:
 - new value axis at the end of the list at the specified chart position
 
 
- 
createCategoryAxis
@Deprecated @Removal(version="4.2") public XSSFCategoryAxis createCategoryAxis(AxisPosition pos)
Deprecated.- Specified by:
 createCategoryAxisin interfaceChartAxisFactory- Returns:
 - new category axis at the end of the list at the specified chart position
 
 
- 
createDateAxis
@Deprecated @Removal(version="4.2") public XSSFDateAxis createDateAxis(AxisPosition pos)
Deprecated.- Specified by:
 createDateAxisin interfaceChartAxisFactory- Returns:
 - new date category axis at the end of the list at the specified chart position
 
 
- 
getAxis
@Deprecated @Removal(version="4.2") public java.util.List<? extends XSSFChartAxis> getAxis()
Deprecated.useXDDFChart.getAxes()instead 
- 
getManualLayout
@Deprecated @Removal(version="4.2") public XSSFManualLayout getManualLayout()
Deprecated.Description copied from interface:ManuallyPositionableReturns manual layout for the chart element.- Specified by:
 getManualLayoutin interfaceManuallyPositionable- Returns:
 - manual layout for the chart element.
 
 
- 
getTitleText
public XSSFRichTextString getTitleText()
Returns the title static text, or null if none is set. Note that a title formula may be set instead. Empty text result is for backward compatibility, and could mean the title text is empty or there is a formula instead. Check for a formula first, falling back on text for cleaner logic.- Returns:
 - static title text if set, null if there is no title, empty string if the title text is empty or the title uses a formula instead
 
 
- 
getTitleFormula
public java.lang.String getTitleFormula()
Get the chart title formula expression if there is one- Returns:
 - formula expression or null
 
 
- 
setTitleFormula
public void setTitleFormula(java.lang.String formula)
Set the formula expression to use for the chart title- Parameters:
 formula-
 
- 
getOrCreateLegend
@Deprecated @Removal(version="4.2") public XSSFChartLegend getOrCreateLegend()
Deprecated.- Specified by:
 getOrCreateLegendin interfaceChart- Returns:
 - chart legend instance
 
 
 - 
 
 -