Package org.docx4j.dml.chart
Class CTLegend
java.lang.Object
org.docx4j.dml.chart.CTLegend
- All Implemented Interfaces:
Child
public class CTLegend extends java.lang.Object implements 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
Fields Modifier and Type Field Description protected CTExtensionListextLstprotected CTLayoutlayoutprotected java.util.List<CTLegendEntry>legendEntryprotected CTLegendPoslegendPosprotected CTBooleanoverlayprotected CTShapePropertiesspPrprotected CTTextBodytxPr -
Constructor Summary
Constructors Constructor Description CTLegend() -
Method Summary
Modifier and Type Method Description voidafterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)This method is invoked by the JAXB implementation on each instance when unmarshalling completes.CTExtensionListgetExtLst()Gets the value of the extLst property.CTLayoutgetLayout()Gets the value of the layout property.java.util.List<CTLegendEntry>getLegendEntry()Gets the value of the legendEntry property.CTLegendPosgetLegendPos()Gets the value of the legendPos property.CTBooleangetOverlay()Gets the value of the overlay property.java.lang.ObjectgetParent()Gets the parent object in the object tree representing the unmarshalled xml document.CTShapePropertiesgetSpPr()Gets the value of the spPr property.CTTextBodygetTxPr()Gets the value of the txPr property.voidsetExtLst(CTExtensionList value)Sets the value of the extLst property.voidsetLayout(CTLayout value)Sets 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.voidsetParent(java.lang.Object parent)voidsetSpPr(CTShapeProperties value)Sets the value of the spPr property.voidsetTxPr(CTTextBody value)Sets the value of the txPr property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
public java.lang.Object getParent()Gets the parent object in the object tree representing the unmarshalled xml document. -
setParent
public void setParent(java.lang.Object parent) -
afterUnmarshal
public void afterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)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.
-