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

Revision 1201, 9.8 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.JAXBElement;
27import javax.xml.bind.annotation.XmlAccessType;
28import javax.xml.bind.annotation.XmlAccessorType;
29import javax.xml.bind.annotation.XmlAttribute;
30import javax.xml.bind.annotation.XmlElementRef;
31import javax.xml.bind.annotation.XmlElementRefs;
32import javax.xml.bind.annotation.XmlType;
33import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
34import javax.xml.bind.annotation.adapters.HexBinaryAdapter;
35import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
36
37
38/**
39 * <p>Java class for CT_SystemColor complex type.
40 *
41 * <p>The following schema fragment specifies the expected content contained within this class.
42 *
43 * <pre>
44 * &lt;complexType name="CT_SystemColor">
45 *   &lt;complexContent>
46 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
47 *       &lt;sequence>
48 *         &lt;group ref="{http://schemas.openxmlformats.org/drawingml/2006/main}EG_ColorTransform" maxOccurs="unbounded" minOccurs="0"/>
49 *       &lt;/sequence>
50 *       &lt;attribute name="val" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_SystemColorVal" />
51 *       &lt;attribute name="lastClr" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_HexBinary3" />
52 *     &lt;/restriction>
53 *   &lt;/complexContent>
54 * &lt;/complexType>
55 * </pre>
56 *
57 *
58 */
59@XmlAccessorType(XmlAccessType.FIELD)
60@XmlType(name = "CT_SystemColor", propOrder = {
61    "egColorTransform"
62})
63public class CTSystemColor {
64
65    @XmlElementRefs({
66        @XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
67        @XmlElementRef(name = "blueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
68        @XmlElementRef(name = "inv", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
69        @XmlElementRef(name = "green", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
70        @XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
71        @XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
72        @XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
73        @XmlElementRef(name = "hueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
74        @XmlElementRef(name = "invGamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
75        @XmlElementRef(name = "alphaMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
76        @XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
77        @XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
78        @XmlElementRef(name = "sat", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
79        @XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
80        @XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
81        @XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
82        @XmlElementRef(name = "satMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
83        @XmlElementRef(name = "comp", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
84        @XmlElementRef(name = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
85        @XmlElementRef(name = "alpha", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
86        @XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
87        @XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
88        @XmlElementRef(name = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
89        @XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
90        @XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
91        @XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
92        @XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
93        @XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class)
94    })
95    protected List<JAXBElement<?>> egColorTransform;
96    @XmlAttribute(required = true)
97    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
98    protected String val;
99    @XmlAttribute
100    @XmlJavaTypeAdapter(HexBinaryAdapter.class)
101    protected byte[] lastClr;
102
103    /**
104     * Gets the value of the egColorTransform property.
105     *
106     * <p>
107     * This accessor method returns a reference to the live list,
108     * not a snapshot. Therefore any modification you make to the
109     * returned list will be present inside the JAXB object.
110     * This is why there is not a <CODE>set</CODE> method for the egColorTransform property.
111     *
112     * <p>
113     * For example, to add a new item, do as follows:
114     * <pre>
115     *    getEGColorTransform().add(newItem);
116     * </pre>
117     *
118     *
119     * <p>
120     * Objects of the following type(s) are allowed in the list
121     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
122     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
123     * {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >}
124     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
125     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
126     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
127     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
128     * {@link JAXBElement }{@code <}{@link CTAngle }{@code >}
129     * {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >}
130     * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >}
131     * {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >}
132     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
133     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
134     * {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >}
135     * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
136     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
137     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
138     * {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >}
139     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
140     * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
141     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
142     * {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >}
143     * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >}
144     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
145     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
146     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
147     * {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >}
148     * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
149     *
150     *
151     */
152    public List<JAXBElement<?>> getEGColorTransform() {
153        if (egColorTransform == null) {
154            egColorTransform = new ArrayList<JAXBElement<?>>();
155        }
156        return this.egColorTransform;
157    }
158
159    /**
160     * Gets the value of the val property.
161     *
162     * @return
163     *     possible object is
164     *     {@link String }
165     *     
166     */
167    public String getVal() {
168        return val;
169    }
170
171    /**
172     * Sets the value of the val property.
173     *
174     * @param value
175     *     allowed object is
176     *     {@link String }
177     *     
178     */
179    public void setVal(String value) {
180        this.val = value;
181    }
182
183    /**
184     * Gets the value of the lastClr property.
185     *
186     * @return
187     *     possible object is
188     *     {@link String }
189     *     
190     */
191    public byte[] getLastClr() {
192        return lastClr;
193    }
194
195    /**
196     * Sets the value of the lastClr property.
197     *
198     * @param value
199     *     allowed object is
200     *     {@link String }
201     *     
202     */
203    public void setLastClr(byte[] value) {
204        this.lastClr = ((byte[]) value);
205    }
206
207}
Note: See TracBrowser for help on using the repository browser.