Class CTGradientFill

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

public class CTGradientFill extends 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 Details

  • Constructor Details

    • CTGradientFill

      public CTGradientFill()
  • Method Details

    • getStop

      public 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(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(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(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(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(Double value)
      Sets the value of the bottom property.
      Parameters:
      value - allowed object is Double
    • getParent

      public 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(Object parent)
      Specified by:
      setParent in interface Child
    • afterUnmarshal

      public void afterUnmarshal(jakarta.xml.bind.Unmarshaller unmarshaller, 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.