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

Revision 1201, 9.5 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_ScRgbColor 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_ScRgbColor">
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="r" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Percentage" />
48 *       &lt;attribute name="g" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Percentage" />
49 *       &lt;attribute name="b" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Percentage" />
50 *     &lt;/restriction>
51 *   &lt;/complexContent>
52 * &lt;/complexType>
53 * </pre>
54 *
55 *
56 */
57@XmlAccessorType(XmlAccessType.FIELD)
58@XmlType(name = "CT_ScRgbColor", propOrder = {
59    "egColorTransform"
60})
61public class CTScRgbColor {
62
63    @XmlElementRefs({
64        @XmlElementRef(name = "inv", 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 = "invGamma", 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 = "sat", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
69        @XmlElementRef(name = "alpha", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
70        @XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
71        @XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
72        @XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
73        @XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
74        @XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
75        @XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
76        @XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
77        @XmlElementRef(name = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
78        @XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
79        @XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
80        @XmlElementRef(name = "hueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
81        @XmlElementRef(name = "green", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
82        @XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
83        @XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
84        @XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
85        @XmlElementRef(name = "alphaMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
86        @XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
87        @XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
88        @XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
89        @XmlElementRef(name = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
90        @XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
91        @XmlElementRef(name = "comp", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class)
92    })
93    protected List<JAXBElement<?>> egColorTransform;
94    @XmlAttribute(required = true)
95    protected int r;
96    @XmlAttribute(required = true)
97    protected int g;
98    @XmlAttribute(required = true)
99    protected int b;
100
101    /**
102     * Gets the value of the egColorTransform property.
103     *
104     * <p>
105     * This accessor method returns a reference to the live list,
106     * not a snapshot. Therefore any modification you make to the
107     * returned list will be present inside the JAXB object.
108     * This is why there is not a <CODE>set</CODE> method for the egColorTransform property.
109     *
110     * <p>
111     * For example, to add a new item, do as follows:
112     * <pre>
113     *    getEGColorTransform().add(newItem);
114     * </pre>
115     *
116     *
117     * <p>
118     * Objects of the following type(s) are allowed in the list
119     * {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >}
120     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
121     * {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >}
122     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
123     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
124     * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
125     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
126     * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
127     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
128     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
129     * {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >}
130     * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
131     * {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >}
132     * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >}
133     * {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >}
134     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
135     * {@link JAXBElement }{@code <}{@link CTAngle }{@code >}
136     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
137     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
138     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
139     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
140     * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >}
141     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
142     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
143     * {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >}
144     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
145     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
146     * {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >}
147     *
148     *
149     */
150    public List<JAXBElement<?>> getEGColorTransform() {
151        if (egColorTransform == null) {
152            egColorTransform = new ArrayList<JAXBElement<?>>();
153        }
154        return this.egColorTransform;
155    }
156
157    /**
158     * Gets the value of the r property.
159     *
160     */
161    public int getR() {
162        return r;
163    }
164
165    /**
166     * Sets the value of the r property.
167     *
168     */
169    public void setR(int value) {
170        this.r = value;
171    }
172
173    /**
174     * Gets the value of the g property.
175     *
176     */
177    public int getG() {
178        return g;
179    }
180
181    /**
182     * Sets the value of the g property.
183     *
184     */
185    public void setG(int value) {
186        this.g = value;
187    }
188
189    /**
190     * Gets the value of the b property.
191     *
192     */
193    public int getB() {
194        return b;
195    }
196
197    /**
198     * Sets the value of the b property.
199     *
200     */
201    public void setB(int value) {
202        this.b = value;
203    }
204
205}
Note: See TracBrowser for help on using the repository browser.