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

Revision 1201, 9.6 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_HslColor 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_HslColor">
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="hue" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveFixedAngle" />
48 *       &lt;attribute name="sat" use="required" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Percentage" />
49 *       &lt;attribute name="lum" 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_HslColor", propOrder = {
59    "egColorTransform"
60})
61public class CTHslColor {
62
63    @XmlElementRefs({
64        @XmlElementRef(name = "lumOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
65        @XmlElementRef(name = "greenOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
66        @XmlElementRef(name = "blueOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
67        @XmlElementRef(name = "blue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
68        @XmlElementRef(name = "shade", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
69        @XmlElementRef(name = "gray", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
70        @XmlElementRef(name = "inv", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
71        @XmlElementRef(name = "greenMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
72        @XmlElementRef(name = "comp", 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 = "sat", 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 = "satOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
77        @XmlElementRef(name = "gamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
78        @XmlElementRef(name = "redOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
79        @XmlElementRef(name = "satMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
80        @XmlElementRef(name = "alpha", 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 = "hueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
83        @XmlElementRef(name = "alphaOff", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
84        @XmlElementRef(name = "invGamma", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
85        @XmlElementRef(name = "red", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
86        @XmlElementRef(name = "blueMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
87        @XmlElementRef(name = "tint", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
88        @XmlElementRef(name = "lum", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
89        @XmlElementRef(name = "lumMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
90        @XmlElementRef(name = "hue", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class),
91        @XmlElementRef(name = "redMod", namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", type = JAXBElement.class)
92    })
93    protected List<JAXBElement<?>> egColorTransform;
94    @XmlAttribute(required = true)
95    protected int hue;
96    @XmlAttribute(required = true)
97    protected int sat;
98    @XmlAttribute(required = true)
99    protected int lum;
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 CTPercentage }{@code >}
120     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
121     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
122     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
123     * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
124     * {@link JAXBElement }{@code <}{@link CTGrayscaleTransform }{@code >}
125     * {@link JAXBElement }{@code <}{@link CTInverseTransform }{@code >}
126     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
127     * {@link JAXBElement }{@code <}{@link CTComplementTransform }{@code >}
128     * {@link JAXBElement }{@code <}{@link CTAngle }{@code >}
129     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
130     * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >}
131     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
132     * {@link JAXBElement }{@code <}{@link CTGammaTransform }{@code >}
133     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
134     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
135     * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
136     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
137     * {@link JAXBElement }{@code <}{@link CTPositivePercentage }{@code >}
138     * {@link JAXBElement }{@code <}{@link CTFixedPercentage }{@code >}
139     * {@link JAXBElement }{@code <}{@link CTInverseGammaTransform }{@code >}
140     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
141     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
142     * {@link JAXBElement }{@code <}{@link CTPositiveFixedPercentage }{@code >}
143     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
144     * {@link JAXBElement }{@code <}{@link CTPositiveFixedAngle }{@code >}
145     * {@link JAXBElement }{@code <}{@link CTPercentage }{@code >}
146     * {@link JAXBElement }{@code <}{@link CTPercentage }{@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 hue property.
159     *
160     */
161    public int getHue() {
162        return hue;
163    }
164
165    /**
166     * Sets the value of the hue property.
167     *
168     */
169    public void setHue(int value) {
170        this.hue = value;
171    }
172
173    /**
174     * Gets the value of the sat property.
175     *
176     */
177    public int getSat() {
178        return sat;
179    }
180
181    /**
182     * Sets the value of the sat property.
183     *
184     */
185    public void setSat(int value) {
186        this.sat = value;
187    }
188
189    /**
190     * Gets the value of the lum property.
191     *
192     */
193    public int getLum() {
194        return lum;
195    }
196
197    /**
198     * Sets the value of the lum property.
199     *
200     */
201    public void setLum(int value) {
202        this.lum = value;
203    }
204
205}
Note: See TracBrowser for help on using the repository browser.