| 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 | |
|---|
| 22 | package org.docx4j.dml; |
|---|
| 23 | |
|---|
| 24 | import javax.xml.bind.annotation.XmlAccessType; |
|---|
| 25 | import javax.xml.bind.annotation.XmlAccessorType; |
|---|
| 26 | import javax.xml.bind.annotation.XmlType; |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | /** |
|---|
| 30 | * <p>Java class for CT_Color complex type. |
|---|
| 31 | * |
|---|
| 32 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 33 | * |
|---|
| 34 | * <pre> |
|---|
| 35 | * <complexType name="CT_Color"> |
|---|
| 36 | * <complexContent> |
|---|
| 37 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 38 | * <sequence> |
|---|
| 39 | * <group ref="{http://schemas.openxmlformats.org/drawingml/2006/main}EG_ColorChoice"/> |
|---|
| 40 | * </sequence> |
|---|
| 41 | * </restriction> |
|---|
| 42 | * </complexContent> |
|---|
| 43 | * </complexType> |
|---|
| 44 | * </pre> |
|---|
| 45 | * |
|---|
| 46 | * |
|---|
| 47 | */ |
|---|
| 48 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 49 | @XmlType(name = "CT_Color", propOrder = { |
|---|
| 50 | "scrgbClr", |
|---|
| 51 | "srgbClr", |
|---|
| 52 | "hslClr", |
|---|
| 53 | "sysClr", |
|---|
| 54 | "schemeClr", |
|---|
| 55 | "prstClr" |
|---|
| 56 | }) |
|---|
| 57 | public class CTColor { |
|---|
| 58 | |
|---|
| 59 | protected CTScRgbColor scrgbClr; |
|---|
| 60 | protected CTSRgbColor srgbClr; |
|---|
| 61 | protected CTHslColor hslClr; |
|---|
| 62 | protected CTSystemColor sysClr; |
|---|
| 63 | protected CTSchemeColor schemeClr; |
|---|
| 64 | protected CTPresetColor prstClr; |
|---|
| 65 | |
|---|
| 66 | /** |
|---|
| 67 | * Gets the value of the scrgbClr property. |
|---|
| 68 | * |
|---|
| 69 | * @return |
|---|
| 70 | * possible object is |
|---|
| 71 | * {@link CTScRgbColor } |
|---|
| 72 | * |
|---|
| 73 | */ |
|---|
| 74 | public CTScRgbColor getScrgbClr() { |
|---|
| 75 | return scrgbClr; |
|---|
| 76 | } |
|---|
| 77 | |
|---|
| 78 | /** |
|---|
| 79 | * Sets the value of the scrgbClr property. |
|---|
| 80 | * |
|---|
| 81 | * @param value |
|---|
| 82 | * allowed object is |
|---|
| 83 | * {@link CTScRgbColor } |
|---|
| 84 | * |
|---|
| 85 | */ |
|---|
| 86 | public void setScrgbClr(CTScRgbColor value) { |
|---|
| 87 | this.scrgbClr = value; |
|---|
| 88 | } |
|---|
| 89 | |
|---|
| 90 | /** |
|---|
| 91 | * Gets the value of the srgbClr property. |
|---|
| 92 | * |
|---|
| 93 | * @return |
|---|
| 94 | * possible object is |
|---|
| 95 | * {@link CTSRgbColor } |
|---|
| 96 | * |
|---|
| 97 | */ |
|---|
| 98 | public CTSRgbColor getSrgbClr() { |
|---|
| 99 | return srgbClr; |
|---|
| 100 | } |
|---|
| 101 | |
|---|
| 102 | /** |
|---|
| 103 | * Sets the value of the srgbClr property. |
|---|
| 104 | * |
|---|
| 105 | * @param value |
|---|
| 106 | * allowed object is |
|---|
| 107 | * {@link CTSRgbColor } |
|---|
| 108 | * |
|---|
| 109 | */ |
|---|
| 110 | public void setSrgbClr(CTSRgbColor value) { |
|---|
| 111 | this.srgbClr = value; |
|---|
| 112 | } |
|---|
| 113 | |
|---|
| 114 | /** |
|---|
| 115 | * Gets the value of the hslClr property. |
|---|
| 116 | * |
|---|
| 117 | * @return |
|---|
| 118 | * possible object is |
|---|
| 119 | * {@link CTHslColor } |
|---|
| 120 | * |
|---|
| 121 | */ |
|---|
| 122 | public CTHslColor getHslClr() { |
|---|
| 123 | return hslClr; |
|---|
| 124 | } |
|---|
| 125 | |
|---|
| 126 | /** |
|---|
| 127 | * Sets the value of the hslClr property. |
|---|
| 128 | * |
|---|
| 129 | * @param value |
|---|
| 130 | * allowed object is |
|---|
| 131 | * {@link CTHslColor } |
|---|
| 132 | * |
|---|
| 133 | */ |
|---|
| 134 | public void setHslClr(CTHslColor value) { |
|---|
| 135 | this.hslClr = value; |
|---|
| 136 | } |
|---|
| 137 | |
|---|
| 138 | /** |
|---|
| 139 | * Gets the value of the sysClr property. |
|---|
| 140 | * |
|---|
| 141 | * @return |
|---|
| 142 | * possible object is |
|---|
| 143 | * {@link CTSystemColor } |
|---|
| 144 | * |
|---|
| 145 | */ |
|---|
| 146 | public CTSystemColor getSysClr() { |
|---|
| 147 | return sysClr; |
|---|
| 148 | } |
|---|
| 149 | |
|---|
| 150 | /** |
|---|
| 151 | * Sets the value of the sysClr property. |
|---|
| 152 | * |
|---|
| 153 | * @param value |
|---|
| 154 | * allowed object is |
|---|
| 155 | * {@link CTSystemColor } |
|---|
| 156 | * |
|---|
| 157 | */ |
|---|
| 158 | public void setSysClr(CTSystemColor value) { |
|---|
| 159 | this.sysClr = value; |
|---|
| 160 | } |
|---|
| 161 | |
|---|
| 162 | /** |
|---|
| 163 | * Gets the value of the schemeClr property. |
|---|
| 164 | * |
|---|
| 165 | * @return |
|---|
| 166 | * possible object is |
|---|
| 167 | * {@link CTSchemeColor } |
|---|
| 168 | * |
|---|
| 169 | */ |
|---|
| 170 | public CTSchemeColor getSchemeClr() { |
|---|
| 171 | return schemeClr; |
|---|
| 172 | } |
|---|
| 173 | |
|---|
| 174 | /** |
|---|
| 175 | * Sets the value of the schemeClr property. |
|---|
| 176 | * |
|---|
| 177 | * @param value |
|---|
| 178 | * allowed object is |
|---|
| 179 | * {@link CTSchemeColor } |
|---|
| 180 | * |
|---|
| 181 | */ |
|---|
| 182 | public void setSchemeClr(CTSchemeColor value) { |
|---|
| 183 | this.schemeClr = value; |
|---|
| 184 | } |
|---|
| 185 | |
|---|
| 186 | /** |
|---|
| 187 | * Gets the value of the prstClr property. |
|---|
| 188 | * |
|---|
| 189 | * @return |
|---|
| 190 | * possible object is |
|---|
| 191 | * {@link CTPresetColor } |
|---|
| 192 | * |
|---|
| 193 | */ |
|---|
| 194 | public CTPresetColor getPrstClr() { |
|---|
| 195 | return prstClr; |
|---|
| 196 | } |
|---|
| 197 | |
|---|
| 198 | /** |
|---|
| 199 | * Sets the value of the prstClr property. |
|---|
| 200 | * |
|---|
| 201 | * @param value |
|---|
| 202 | * allowed object is |
|---|
| 203 | * {@link CTPresetColor } |
|---|
| 204 | * |
|---|
| 205 | */ |
|---|
| 206 | public void setPrstClr(CTPresetColor value) { |
|---|
| 207 | this.prstClr = value; |
|---|
| 208 | } |
|---|
| 209 | |
|---|
| 210 | } |
|---|