Class CTGradientFill

java.lang.Object
org.xlsx4j.sml.CTGradientFill
All Implemented Interfaces:
Child

public class CTGradientFill
extends java.lang.Object
implements Child

Java class for CT_GradientFill complex type.

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

 <complexType name="CT_GradientFill">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="stop" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_GradientStop" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="type" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_GradientType" default="linear" />
       <attribute name="degree" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
       <attribute name="left" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
       <attribute name="right" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
       <attribute name="top" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
       <attribute name="bottom" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
     </restriction>
   </complexContent>
 </complexType>
 
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.lang.Double bottom  
    protected java.lang.Double degree  
    protected java.lang.Double left  
    protected java.lang.Double right  
    protected java.util.List<CTGradientStop> stop  
    protected java.lang.Double top  
    protected STGradientType type  
  • Constructor Summary

    Constructors 
    Constructor Description
    CTGradientFill()  
  • Method Summary

    Modifier and Type Method Description
    void afterUnmarshal​(javax.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)
    This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
    double getBottom()
    Gets the value of the bottom property.
    double getDegree()
    Gets the value of the degree property.
    double getLeft()
    Gets the value of the left property.
    java.lang.Object getParent()
    Gets the parent object in the object tree representing the unmarshalled xml document.
    double getRight()
    Gets the value of the right property.
    java.util.List<CTGradientStop> getStop()
    Gets the value of the stop property.
    double getTop()
    Gets the value of the top property.
    STGradientType getType()
    Gets the value of the type property.
    void setBottom​(java.lang.Double value)
    Sets the value of the bottom property.
    void setDegree​(java.lang.Double value)
    Sets the value of the degree property.
    void setLeft​(java.lang.Double value)
    Sets the value of the left property.
    void setParent​(java.lang.Object parent)  
    void setRight​(java.lang.Double value)
    Sets the value of the right property.
    void setTop​(java.lang.Double value)
    Sets the value of the top property.
    void setType​(STGradientType value)
    Sets the value of the type property.

    Methods inherited from class java.lang.Object

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

  • Constructor Details

  • Method Details

    • getStop

      public java.util.List<CTGradientStop> getStop()
      Gets the value of the stop 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 set method for the stop property.

      For example, to add a new item, do as follows:

          getStop().add(newItem);
       

      Objects of the following type(s) are allowed in the list CTGradientStop

    • getType

      public STGradientType getType()
      Gets the value of the type property.
      Returns:
      possible object is STGradientType
    • setType

      public void setType​(STGradientType value)
      Sets the value of the type property.
      Parameters:
      value - allowed object is STGradientType
    • getDegree

      public double getDegree()
      Gets the value of the degree property.
      Returns:
      possible object is Double
    • setDegree

      public void setDegree​(java.lang.Double value)
      Sets the value of the degree property.
      Parameters:
      value - allowed object is Double
    • getLeft

      public double getLeft()
      Gets the value of the left property.
      Returns:
      possible object is Double
    • setLeft

      public void setLeft​(java.lang.Double value)
      Sets the value of the left property.
      Parameters:
      value - allowed object is Double
    • getRight

      public double getRight()
      Gets the value of the right property.
      Returns:
      possible object is Double
    • setRight

      public void setRight​(java.lang.Double value)
      Sets the value of the right property.
      Parameters:
      value - allowed object is Double
    • getTop

      public double getTop()
      Gets the value of the top property.
      Returns:
      possible object is Double
    • setTop

      public void setTop​(java.lang.Double value)
      Sets the value of the top property.
      Parameters:
      value - allowed object is Double
    • getBottom

      public double getBottom()
      Gets the value of the bottom property.
      Returns:
      possible object is Double
    • setBottom

      public void setBottom​(java.lang.Double value)
      Sets the value of the bottom property.
      Parameters:
      value - allowed object is Double
    • 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​(javax.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.