Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   *  Copyright 2010-2013, Plutext Pty Ltd.
   *   
   *  This file is part of xlsx4j, a component of docx4j.
  
      docx4j is licensed under the Apache License, Version 2.0 (the "License"); 
      you may not use this file except in compliance with the License. 
  
      You may obtain a copy of the License at 
 
         http://www.apache.org/licenses/LICENSE-2.0 
 
     Unless required by applicable law or agreed to in writing, software 
     distributed under the License is distributed on an "AS IS" BASIS, 
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
     See the License for the specific language governing permissions and 
     limitations under the License.
 
  */
 package org.xlsx4j.sml;
 
 import java.util.List;

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>
 
 
 @XmlType(name = "CT_GradientFill", propOrder = {
     "stop"
 })
 public class CTGradientFill implements Child
 {
 
     protected List<CTGradientStopstop;
     @XmlAttribute(name = "type")
     protected STGradientType type;
     @XmlAttribute(name = "degree")
     protected Double degree;
     @XmlAttribute(name = "left")
     protected Double left;
     @XmlAttribute(name = "right")
     protected Double right;
     @XmlAttribute(name = "top")
     protected Double top;
     @XmlAttribute(name = "bottom")
     protected Double bottom;
     @XmlTransient
     private Object parent;

    
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

    public List<CTGradientStopgetStop() {
        if ( == null) {
             = new ArrayList<CTGradientStop>();
        }
        return this.;
    }

    
Gets the value of the type property.

Returns:
possible object is
    public STGradientType getType() {
        if ( == null) {
            return .;
        } else {
            return ;
        }
    }

    
Sets the value of the type property.

Parameters:
value allowed object is
    public void setType(STGradientType value) {
        this. = value;
    }

    
Gets the value of the degree property.

Returns:
possible object is
    public double getDegree() {
        if ( == null) {
            return  0.0D;
        } else {
            return ;
        }
    }

    
Sets the value of the degree property.

Parameters:
value allowed object is
    public void setDegree(Double value) {
        this. = value;
    }

    
Gets the value of the left property.

Returns:
possible object is
    public double getLeft() {
        if ( == null) {
            return  0.0D;
        } else {
            return ;
        }
    }

    
Sets the value of the left property.

Parameters:
value allowed object is
    public void setLeft(Double value) {
        this. = value;
    }

    
Gets the value of the right property.

Returns:
possible object is
    public double getRight() {
        if ( == null) {
            return  0.0D;
        } else {
            return ;
        }
    }

    
Sets the value of the right property.

Parameters:
value allowed object is
    public void setRight(Double value) {
        this. = value;
    }

    
Gets the value of the top property.

Returns:
possible object is
    public double getTop() {
        if ( == null) {
            return  0.0D;
        } else {
            return ;
        }
    }

    
Sets the value of the top property.

Parameters:
value allowed object is
    public void setTop(Double value) {
        this. = value;
    }

    
Gets the value of the bottom property.

Returns:
possible object is
    public double getBottom() {
        if ( == null) {
            return  0.0D;
        } else {
            return ;
        }
    }

    
Sets the value of the bottom property.

Parameters:
value allowed object is
    public void setBottom(Double value) {
        this. = value;
    }

    
Gets the parent object in the object tree representing the unmarshalled xml document.

Returns:
The parent object.
    public Object getParent() {
        return this.;
    }
    public void setParent(Object parent) {
        this. = 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.
    public void afterUnmarshal(Unmarshaller unmarshallerObject parent) {
        setParent(parent);
    }
New to GrepCode? Check out our FAQ X