public class CTLegend extends 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>
| Modifier and Type | Field and Description |
|---|---|
protected CTExtensionList |
extLst |
protected CTLayout |
layout |
protected List<CTLegendEntry> |
legendEntry |
protected CTLegendPos |
legendPos |
protected CTBoolean |
overlay |
protected CTShapeProperties |
spPr |
protected CTTextBody |
txPr |
| Constructor and Description |
|---|
CTLegend() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterUnmarshal(Unmarshaller unmarshaller,
Object parent)
This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
|
CTExtensionList |
getExtLst()
Gets the value of the extLst property.
|
CTLayout |
getLayout()
Gets the value of the layout property.
|
List<CTLegendEntry> |
getLegendEntry()
Gets the value of the legendEntry property.
|
CTLegendPos |
getLegendPos()
Gets the value of the legendPos property.
|
CTBoolean |
getOverlay()
Gets the value of the overlay property.
|
Object |
getParent()
Gets the parent object in the object tree representing the unmarshalled xml document.
|
CTShapeProperties |
getSpPr()
Gets the value of the spPr property.
|
CTTextBody |
getTxPr()
Gets the value of the txPr property.
|
void |
setExtLst(CTExtensionList value)
Sets the value of the extLst property.
|
void |
setLayout(CTLayout value)
Sets the value of the layout property.
|
void |
setLegendPos(CTLegendPos value)
Sets the value of the legendPos property.
|
void |
setOverlay(CTBoolean value)
Sets the value of the overlay property.
|
void |
setParent(Object parent) |
void |
setSpPr(CTShapeProperties value)
Sets the value of the spPr property.
|
void |
setTxPr(CTTextBody value)
Sets the value of the txPr property.
|
protected CTLegendPos legendPos
protected List<CTLegendEntry> legendEntry
protected CTLayout layout
protected CTBoolean overlay
protected CTShapeProperties spPr
protected CTTextBody txPr
protected CTExtensionList extLst
public CTLegendPos getLegendPos()
CTLegendPospublic void setLegendPos(CTLegendPos value)
value - allowed object is
CTLegendPospublic List<CTLegendEntry> getLegendEntry()
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 set method 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
public CTLayout getLayout()
CTLayoutpublic void setLayout(CTLayout value)
value - allowed object is
CTLayoutpublic CTBoolean getOverlay()
CTBooleanpublic void setOverlay(CTBoolean value)
value - allowed object is
CTBooleanpublic CTShapeProperties getSpPr()
CTShapePropertiespublic void setSpPr(CTShapeProperties value)
value - allowed object is
CTShapePropertiespublic CTTextBody getTxPr()
CTTextBodypublic void setTxPr(CTTextBody value)
value - allowed object is
CTTextBodypublic CTExtensionList getExtLst()
CTExtensionListpublic void setExtLst(CTExtensionList value)
value - allowed object is
CTExtensionListpublic Object getParent()
public void afterUnmarshal(Unmarshaller unmarshaller, Object parent)
parent - The parent object in the object tree.unmarshaller - The unmarshaller that generated the instance.Copyright © 2007-2020. All Rights Reserved.