Class XDDFChartLegend
- java.lang.Object
-
- org.apache.poi.xddf.usermodel.chart.XDDFChartLegend
-
- All Implemented Interfaces:
TextContainer
@Beta public final class XDDFChartLegend extends Object implements TextContainer
Represents a DrawingML chart legend
-
-
Constructor Summary
Constructors Constructor Description XDDFChartLegend(org.openxmlformats.schemas.drawingml.x2006.chart.CTChart ctChart)Create a new DrawingML chart legend
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XDDFLegendEntryaddEntry()<R> Optional<R>findDefinedParagraphProperty(Predicate<org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties> isSet, Function<org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties,R> getter)<R> Optional<R>findDefinedRunProperty(Predicate<org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties> isSet, Function<org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties,R> getter)List<XDDFLegendEntry>getEntries()XDDFLegendEntrygetEntry(int index)XDDFChartExtensionListgetExtensionList()XDDFLayoutgetLayout()XDDFManualLayoutgetOrAddManualLayout()LegendPositiongetPosition()org.openxmlformats.schemas.drawingml.x2006.main.CTShapePropertiesgetShapeProperties()XDDFTextBodygetTextBody()protected org.openxmlformats.schemas.drawingml.x2006.chart.CTLegendgetXmlObject()Return the underlying CTLegend bean.booleanisOverlay()voidsetExtensionList(XDDFChartExtensionList list)voidsetLayout(XDDFLayout layout)voidsetOverlay(boolean value)voidsetPosition(LegendPosition position)voidsetShapeProperties(org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties properties)voidsetTextBody(XDDFTextBody body)
-
-
-
Method Detail
-
getXmlObject
@Internal protected org.openxmlformats.schemas.drawingml.x2006.chart.CTLegend getXmlObject()
Return the underlying CTLegend bean.- Returns:
- the underlying CTLegend bean
-
getShapeProperties
@Internal public org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties getShapeProperties()
-
setShapeProperties
@Internal public void setShapeProperties(org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties properties)
-
getTextBody
public XDDFTextBody getTextBody()
-
setTextBody
public void setTextBody(XDDFTextBody body)
-
addEntry
public XDDFLegendEntry addEntry()
-
getEntry
public XDDFLegendEntry getEntry(int index)
-
getEntries
public List<XDDFLegendEntry> getEntries()
-
setExtensionList
public void setExtensionList(XDDFChartExtensionList list)
-
getExtensionList
public XDDFChartExtensionList getExtensionList()
-
setLayout
public void setLayout(XDDFLayout layout)
-
getLayout
public XDDFLayout getLayout()
-
setPosition
public void setPosition(LegendPosition position)
-
getPosition
public LegendPosition getPosition()
-
getOrAddManualLayout
public XDDFManualLayout getOrAddManualLayout()
-
isOverlay
public boolean isOverlay()
-
setOverlay
public void setOverlay(boolean value)
-
findDefinedParagraphProperty
public <R> Optional<R> findDefinedParagraphProperty(Predicate<org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties> isSet, Function<org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties,R> getter)
- Specified by:
findDefinedParagraphPropertyin interfaceTextContainer
-
findDefinedRunProperty
public <R> Optional<R> findDefinedRunProperty(Predicate<org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties> isSet, Function<org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties,R> getter)
- Specified by:
findDefinedRunPropertyin interfaceTextContainer
-
-