Class CTShape

java.lang.Object
org.docx4j.dml.chartDrawing.CTShape
All Implemented Interfaces:
Child

public class CTShape
extends java.lang.Object
implements Child

Java class for CT_Shape complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="CT_Shape">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="nvSpPr" type="{http://schemas.openxmlformats.org/drawingml/2006/chartDrawing}CT_ShapeNonVisual"/>
         <element name="spPr" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_ShapeProperties"/>
         <element name="style" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_ShapeStyle" minOccurs="0"/>
         <element name="txBody" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_TextBody" minOccurs="0"/>
       </sequence>
       <attribute name="macro" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="textlink" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="fLocksText" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="fPublished" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected java.lang.Boolean fLocksText  
    protected java.lang.Boolean fPublished  
    protected java.lang.String macro  
    protected CTShapeNonVisual nvSpPr  
    protected CTShapeProperties spPr  
    protected CTShapeStyle style  
    protected java.lang.String textlink  
    protected CTTextBody txBody  
  • Constructor Summary

    Constructors
    Constructor Description
    CTShape()  
  • Method Summary

    Modifier and Type Method Description
    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.
    java.lang.String getMacro()
    Gets the value of the macro property.
    CTShapeNonVisual getNvSpPr()
    Gets the value of the nvSpPr property.
    java.lang.Object getParent()
    Gets the parent object in the object tree representing the unmarshalled xml document.
    CTShapeProperties getSpPr()
    Gets the value of the spPr property.
    CTShapeStyle getStyle()
    Gets the value of the style property.
    java.lang.String getTextlink()
    Gets the value of the textlink property.
    CTTextBody getTxBody()
    Gets the value of the txBody property.
    boolean isFLocksText()
    Gets the value of the fLocksText property.
    boolean isFPublished()
    Gets the value of the fPublished property.
    void setFLocksText​(java.lang.Boolean value)
    Sets the value of the fLocksText property.
    void setFPublished​(java.lang.Boolean value)
    Sets the value of the fPublished property.
    void setMacro​(java.lang.String value)
    Sets the value of the macro property.
    void setNvSpPr​(CTShapeNonVisual value)
    Sets the value of the nvSpPr property.
    void setParent​(java.lang.Object parent)  
    void setSpPr​(CTShapeProperties value)
    Sets the value of the spPr property.
    void setStyle​(CTShapeStyle value)
    Sets the value of the style property.
    void setTextlink​(java.lang.String value)
    Sets the value of the textlink property.
    void setTxBody​(CTTextBody value)
    Sets the value of the txBody property.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • nvSpPr

      protected CTShapeNonVisual nvSpPr
    • spPr

      protected CTShapeProperties spPr
    • style

      protected CTShapeStyle style
    • txBody

      protected CTTextBody txBody
    • macro

      protected java.lang.String macro
    • fLocksText

      protected java.lang.Boolean fLocksText
    • fPublished

      protected java.lang.Boolean fPublished
  • Constructor Details

    • CTShape

      public CTShape()
  • Method Details

    • getNvSpPr

      public CTShapeNonVisual getNvSpPr()
      Gets the value of the nvSpPr property.
      Returns:
      possible object is CTShapeNonVisual
    • setNvSpPr

      public void setNvSpPr​(CTShapeNonVisual value)
      Sets the value of the nvSpPr property.
      Parameters:
      value - allowed object is CTShapeNonVisual
    • getSpPr

      public CTShapeProperties getSpPr()
      Gets the value of the spPr property.
      Returns:
      possible object is CTShapeProperties
    • setSpPr

      public void setSpPr​(CTShapeProperties value)
      Sets the value of the spPr property.
      Parameters:
      value - allowed object is CTShapeProperties
    • getStyle

      public CTShapeStyle getStyle()
      Gets the value of the style property.
      Returns:
      possible object is CTShapeStyle
    • setStyle

      public void setStyle​(CTShapeStyle value)
      Sets the value of the style property.
      Parameters:
      value - allowed object is CTShapeStyle
    • getTxBody

      public CTTextBody getTxBody()
      Gets the value of the txBody property.
      Returns:
      possible object is CTTextBody
    • setTxBody

      public void setTxBody​(CTTextBody value)
      Sets the value of the txBody property.
      Parameters:
      value - allowed object is CTTextBody
    • getMacro

      public java.lang.String getMacro()
      Gets the value of the macro property.
      Returns:
      possible object is String
    • setMacro

      public void setMacro​(java.lang.String value)
      Sets the value of the macro property.
      Parameters:
      value - allowed object is String
    • getTextlink

      public java.lang.String getTextlink()
      Gets the value of the textlink property.
      Returns:
      possible object is String
    • setTextlink

      public void setTextlink​(java.lang.String value)
      Sets the value of the textlink property.
      Parameters:
      value - allowed object is String
    • isFLocksText

      public boolean isFLocksText()
      Gets the value of the fLocksText property.
      Returns:
      possible object is Boolean
    • setFLocksText

      public void setFLocksText​(java.lang.Boolean value)
      Sets the value of the fLocksText property.
      Parameters:
      value - allowed object is Boolean
    • isFPublished

      public boolean isFPublished()
      Gets the value of the fPublished property.
      Returns:
      possible object is Boolean
    • setFPublished

      public void setFPublished​(java.lang.Boolean value)
      Sets the value of the fPublished property.
      Parameters:
      value - allowed object is Boolean
    • getParent

      public java.lang.Object getParent()
      Gets the parent object in the object tree representing the unmarshalled xml document.
      Specified by:
      getParent in interface Child
      Returns:
      The parent object.
    • setParent

      public void setParent​(java.lang.Object parent)
      Specified by:
      setParent in interface Child
    • 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.