Package org.docx4j.dml.chart
Class CTLegend
java.lang.Object
org.docx4j.dml.chart.CTLegend
- All Implemented Interfaces:
Child
Java class for CT_Legend complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="CT_Legend">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="legendPos" type="{http://schemas.openxmlformats.org/drawingml/2006/chart}CT_LegendPos" minOccurs="0"/>
<element name="legendEntry" type="{http://schemas.openxmlformats.org/drawingml/2006/chart}CT_LegendEntry" maxOccurs="unbounded" minOccurs="0"/>
<element name="layout" type="{http://schemas.openxmlformats.org/drawingml/2006/chart}CT_Layout" minOccurs="0"/>
<element name="overlay" type="{http://schemas.openxmlformats.org/drawingml/2006/chart}CT_Boolean" minOccurs="0"/>
<element name="spPr" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_ShapeProperties" minOccurs="0"/>
<element name="txPr" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_TextBody" minOccurs="0"/>
<element name="extLst" type="{http://schemas.openxmlformats.org/drawingml/2006/chart}CT_ExtensionList" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CTExtensionListprotected CTLayoutprotected List<CTLegendEntry>protected CTLegendPosprotected CTBooleanprotected CTShapePropertiesprotected CTTextBody -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, Object parent) This method is invoked by the JAXB implementation on each instance when unmarshalling completes.Gets the value of the extLst property.Gets the value of the layout property.Gets the value of the legendEntry property.Gets the value of the legendPos property.Gets the value of the overlay property.Gets the parent object in the object tree representing the unmarshalled xml document.getSpPr()Gets the value of the spPr property.getTxPr()Gets the value of the txPr property.voidsetExtLst(CTExtensionList value) Sets the value of the extLst property.voidSets the value of the layout property.voidsetLegendPos(CTLegendPos value) Sets the value of the legendPos property.voidsetOverlay(CTBoolean value) Sets the value of the overlay property.voidvoidsetSpPr(CTShapeProperties value) Sets the value of the spPr property.voidsetTxPr(CTTextBody value) Sets the value of the txPr property.
-
Field Details
-
legendPos
-
legendEntry
-
layout
-
overlay
-
spPr
-
txPr
-
extLst
-
-
Constructor Details
-
CTLegend
public CTLegend()
-
-
Method Details
-
getLegendPos
Gets the value of the legendPos property.- Returns:
- possible object is
CTLegendPos
-
setLegendPos
Sets the value of the legendPos property.- Parameters:
value- allowed object isCTLegendPos
-
getLegendEntry
Gets the value of the legendEntry property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the legendEntry property.For example, to add a new item, do as follows:
getLegendEntry().add(newItem);Objects of the following type(s) are allowed in the list
CTLegendEntry -
getLayout
Gets the value of the layout property.- Returns:
- possible object is
CTLayout
-
setLayout
Sets the value of the layout property.- Parameters:
value- allowed object isCTLayout
-
getOverlay
Gets the value of the overlay property.- Returns:
- possible object is
CTBoolean
-
setOverlay
Sets the value of the overlay property.- Parameters:
value- allowed object isCTBoolean
-
getSpPr
Gets the value of the spPr property.- Returns:
- possible object is
CTShapeProperties
-
setSpPr
Sets the value of the spPr property.- Parameters:
value- allowed object isCTShapeProperties
-
getTxPr
Gets the value of the txPr property.- Returns:
- possible object is
CTTextBody
-
setTxPr
Sets the value of the txPr property.- Parameters:
value- allowed object isCTTextBody
-
getExtLst
Gets the value of the extLst property.- Returns:
- possible object is
CTExtensionList
-
setExtLst
Sets the value of the extLst property.- Parameters:
value- allowed object isCTExtensionList
-
getParent
Gets the parent object in the object tree representing the unmarshalled xml document. -
setParent
-
afterUnmarshal
This method is invoked by the JAXB implementation on each instance when unmarshalling completes.- Parameters:
parent- The parent object in the object tree.unmarshaller- The unmarshaller that generated the instance.
-