Package org.xlsx4j.sml
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.Doublebottomprotected java.lang.Doubledegreeprotected java.lang.Doubleleftprotected java.lang.Doublerightprotected java.util.List<CTGradientStop>stopprotected java.lang.Doubletopprotected STGradientTypetype -
Constructor Summary
Constructors Constructor Description CTGradientFill() -
Method Summary
Modifier and Type Method Description voidafterUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, java.lang.Object parent)This method is invoked by the JAXB implementation on each instance when unmarshalling completes.doublegetBottom()Gets the value of the bottom property.doublegetDegree()Gets the value of the degree property.doublegetLeft()Gets the value of the left property.java.lang.ObjectgetParent()Gets the parent object in the object tree representing the unmarshalled xml document.doublegetRight()Gets the value of the right property.java.util.List<CTGradientStop>getStop()Gets the value of the stop property.doublegetTop()Gets the value of the top property.STGradientTypegetType()Gets the value of the type property.voidsetBottom(java.lang.Double value)Sets the value of the bottom property.voidsetDegree(java.lang.Double value)Sets the value of the degree property.voidsetLeft(java.lang.Double value)Sets the value of the left property.voidsetParent(java.lang.Object parent)voidsetRight(java.lang.Double value)Sets the value of the right property.voidsetTop(java.lang.Double value)Sets the value of the top property.voidsetType(STGradientType value)Sets the value of the type property.
-
Field Details
-
Constructor Details
-
CTGradientFill
public CTGradientFill()
-
-
Method Details
-
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
setmethod 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
Gets the value of the type property.- Returns:
- possible object is
STGradientType
-
setType
Sets the value of the type property.- Parameters:
value- allowed object isSTGradientType
-
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 isDouble
-
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 isDouble
-
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 isDouble
-
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 isDouble
-
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 isDouble
-
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(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.
-