source: trunk/docx4j/src/main/java/org/docx4j/dml/CTEffectContainer.java @ 1201

Revision 1201, 7.2 KB checked in by jharrop, 21 months ago (diff)

Additional xlsx parts. Had to regenerate dml/ to include spreadsheet drawing.

Line 
1/*
2 *  Copyright 2007-2008, Plutext Pty Ltd.
3 *   
4 *  This file is part of docx4j.
5
6    docx4j is licensed under the Apache License, Version 2.0 (the "License");
7    you may not use this file except in compliance with the License.
8
9    You may obtain a copy of the License at
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
13    Unless required by applicable law or agreed to in writing, software
14    distributed under the License is distributed on an "AS IS" BASIS,
15    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16    See the License for the specific language governing permissions and
17    limitations under the License.
18
19 */
20
21
22package org.docx4j.dml;
23
24import java.util.ArrayList;
25import java.util.List;
26import javax.xml.bind.annotation.XmlAccessType;
27import javax.xml.bind.annotation.XmlAccessorType;
28import javax.xml.bind.annotation.XmlAttribute;
29import javax.xml.bind.annotation.XmlElement;
30import javax.xml.bind.annotation.XmlElements;
31import javax.xml.bind.annotation.XmlSchemaType;
32import javax.xml.bind.annotation.XmlType;
33import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
34import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
35
36
37/**
38 * <p>Java class for CT_EffectContainer complex type.
39 *
40 * <p>The following schema fragment specifies the expected content contained within this class.
41 *
42 * <pre>
43 * &lt;complexType name="CT_EffectContainer">
44 *   &lt;complexContent>
45 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
46 *       &lt;group ref="{http://schemas.openxmlformats.org/drawingml/2006/main}EG_Effect" maxOccurs="unbounded" minOccurs="0"/>
47 *       &lt;attribute name="type" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_EffectContainerType" default="sib" />
48 *       &lt;attribute name="name" type="{http://www.w3.org/2001/XMLSchema}token" />
49 *     &lt;/restriction>
50 *   &lt;/complexContent>
51 * &lt;/complexType>
52 * </pre>
53 *
54 *
55 */
56@XmlAccessorType(XmlAccessType.FIELD)
57@XmlType(name = "CT_EffectContainer", propOrder = {
58    "egEffect"
59})
60public class CTEffectContainer {
61
62    @XmlElements({
63        @XmlElement(name = "alphaFloor", type = CTAlphaFloorEffect.class),
64        @XmlElement(name = "clrRepl", type = CTColorReplaceEffect.class),
65        @XmlElement(name = "alphaRepl", type = CTAlphaReplaceEffect.class),
66        @XmlElement(name = "effect", type = CTEffectReference.class),
67        @XmlElement(name = "prstShdw", type = CTPresetShadowEffect.class),
68        @XmlElement(name = "fillOverlay", type = CTFillOverlayEffect.class),
69        @XmlElement(name = "glow", type = CTGlowEffect.class),
70        @XmlElement(name = "xfrm", type = CTTransformEffect.class),
71        @XmlElement(name = "lum", type = CTLuminanceEffect.class),
72        @XmlElement(name = "hsl", type = CTHSLEffect.class),
73        @XmlElement(name = "alphaCeiling", type = CTAlphaCeilingEffect.class),
74        @XmlElement(name = "blend", type = CTBlendEffect.class),
75        @XmlElement(name = "grayscl", type = CTGrayscaleEffect.class),
76        @XmlElement(name = "alphaInv", type = CTAlphaInverseEffect.class),
77        @XmlElement(name = "alphaBiLevel", type = CTAlphaBiLevelEffect.class),
78        @XmlElement(name = "cont", type = CTEffectContainer.class),
79        @XmlElement(name = "duotone", type = CTDuotoneEffect.class),
80        @XmlElement(name = "softEdge", type = CTSoftEdgesEffect.class),
81        @XmlElement(name = "outerShdw", type = CTOuterShadowEffect.class),
82        @XmlElement(name = "tint", type = CTTintEffect.class),
83        @XmlElement(name = "innerShdw", type = CTInnerShadowEffect.class),
84        @XmlElement(name = "relOff", type = CTRelativeOffsetEffect.class),
85        @XmlElement(name = "reflection", type = CTReflectionEffect.class),
86        @XmlElement(name = "alphaModFix", type = CTAlphaModulateFixedEffect.class),
87        @XmlElement(name = "blur", type = CTBlurEffect.class),
88        @XmlElement(name = "biLevel", type = CTBiLevelEffect.class),
89        @XmlElement(name = "alphaOutset", type = CTAlphaOutsetEffect.class),
90        @XmlElement(name = "clrChange", type = CTColorChangeEffect.class),
91        @XmlElement(name = "alphaMod", type = CTAlphaModulateEffect.class),
92        @XmlElement(name = "fill", type = CTFillEffect.class)
93    })
94    protected List<Object> egEffect;
95    @XmlAttribute
96    protected STEffectContainerType type;
97    @XmlAttribute
98    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
99    @XmlSchemaType(name = "token")
100    protected String name;
101
102    /**
103     * Gets the value of the egEffect property.
104     *
105     * <p>
106     * This accessor method returns a reference to the live list,
107     * not a snapshot. Therefore any modification you make to the
108     * returned list will be present inside the JAXB object.
109     * This is why there is not a <CODE>set</CODE> method for the egEffect property.
110     *
111     * <p>
112     * For example, to add a new item, do as follows:
113     * <pre>
114     *    getEGEffect().add(newItem);
115     * </pre>
116     *
117     *
118     * <p>
119     * Objects of the following type(s) are allowed in the list
120     * {@link CTAlphaFloorEffect }
121     * {@link CTColorReplaceEffect }
122     * {@link CTAlphaReplaceEffect }
123     * {@link CTEffectReference }
124     * {@link CTPresetShadowEffect }
125     * {@link CTFillOverlayEffect }
126     * {@link CTGlowEffect }
127     * {@link CTTransformEffect }
128     * {@link CTLuminanceEffect }
129     * {@link CTHSLEffect }
130     * {@link CTAlphaCeilingEffect }
131     * {@link CTBlendEffect }
132     * {@link CTGrayscaleEffect }
133     * {@link CTAlphaInverseEffect }
134     * {@link CTAlphaBiLevelEffect }
135     * {@link CTEffectContainer }
136     * {@link CTDuotoneEffect }
137     * {@link CTSoftEdgesEffect }
138     * {@link CTOuterShadowEffect }
139     * {@link CTTintEffect }
140     * {@link CTInnerShadowEffect }
141     * {@link CTRelativeOffsetEffect }
142     * {@link CTReflectionEffect }
143     * {@link CTAlphaModulateFixedEffect }
144     * {@link CTBlurEffect }
145     * {@link CTBiLevelEffect }
146     * {@link CTAlphaOutsetEffect }
147     * {@link CTColorChangeEffect }
148     * {@link CTAlphaModulateEffect }
149     * {@link CTFillEffect }
150     *
151     *
152     */
153    public List<Object> getEGEffect() {
154        if (egEffect == null) {
155            egEffect = new ArrayList<Object>();
156        }
157        return this.egEffect;
158    }
159
160    /**
161     * Gets the value of the type property.
162     *
163     * @return
164     *     possible object is
165     *     {@link STEffectContainerType }
166     *     
167     */
168    public STEffectContainerType getType() {
169        if (type == null) {
170            return STEffectContainerType.SIB;
171        } else {
172            return type;
173        }
174    }
175
176    /**
177     * Sets the value of the type property.
178     *
179     * @param value
180     *     allowed object is
181     *     {@link STEffectContainerType }
182     *     
183     */
184    public void setType(STEffectContainerType value) {
185        this.type = value;
186    }
187
188    /**
189     * Gets the value of the name property.
190     *
191     * @return
192     *     possible object is
193     *     {@link String }
194     *     
195     */
196    public String getName() {
197        return name;
198    }
199
200    /**
201     * Sets the value of the name property.
202     *
203     * @param value
204     *     allowed object is
205     *     {@link String }
206     *     
207     */
208    public void setName(String value) {
209        this.name = value;
210    }
211
212}
Note: See TracBrowser for help on using the repository browser.