Class XDDFChartLegend
java.lang.Object
org.apache.poi.xddf.usermodel.chart.XDDFChartLegend
- All Implemented Interfaces:
TextContainer
Represents a DrawingML chart legend
-
Constructor Summary
ConstructorsConstructorDescriptionXDDFChartLegend
(org.openxmlformats.schemas.drawingml.x2006.chart.CTChart ctChart) Create a new DrawingML chart legend -
Method Summary
Modifier and TypeMethodDescriptionaddEntry()
<R> Optional
<R> findDefinedParagraphProperty
(Function<org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties, Boolean> isSet, Function<org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties, R> getter) <R> Optional
<R> findDefinedRunProperty
(Function<org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties, Boolean> isSet, Function<org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties, R> getter) getEntry
(int index) org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties
protected org.openxmlformats.schemas.drawingml.x2006.chart.CTLegend
Return the underlying CTLegend bean.boolean
void
void
setLayout
(XDDFLayout layout) void
setOverlay
(boolean value) void
setPosition
(LegendPosition position) void
setShapeProperties
(org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties properties) void
setTextBody
(XDDFTextBody body)
-
Constructor Details
-
XDDFChartLegend
public XDDFChartLegend(org.openxmlformats.schemas.drawingml.x2006.chart.CTChart ctChart) Create a new DrawingML chart legend
-
-
Method Details
-
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
-
setTextBody
-
addEntry
-
getEntry
-
getEntries
-
setExtensionList
-
getExtensionList
-
setLayout
-
getLayout
-
setPosition
-
getPosition
-
getOrAddManualLayout
-
isOverlay
public boolean isOverlay() -
setOverlay
public void setOverlay(boolean value) -
findDefinedParagraphProperty
public <R> Optional<R> findDefinedParagraphProperty(Function<org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties, Boolean> isSet, Function<org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties, R> getter) - Specified by:
findDefinedParagraphProperty
in interfaceTextContainer
-
findDefinedRunProperty
public <R> Optional<R> findDefinedRunProperty(Function<org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties, Boolean> isSet, Function<org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties, R> getter) - Specified by:
findDefinedRunProperty
in interfaceTextContainer
-