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

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