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

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