| 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.XmlAttribute; |
|---|
| 27 | import javax.xml.bind.annotation.XmlType; |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | /** |
|---|
| 31 | * <p>Java class for CT_InnerShadowEffect complex type. |
|---|
| 32 | * |
|---|
| 33 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 34 | * |
|---|
| 35 | * <pre> |
|---|
| 36 | * <complexType name="CT_InnerShadowEffect"> |
|---|
| 37 | * <complexContent> |
|---|
| 38 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 39 | * <sequence> |
|---|
| 40 | * <group ref="{http://schemas.openxmlformats.org/drawingml/2006/main}EG_ColorChoice"/> |
|---|
| 41 | * </sequence> |
|---|
| 42 | * <attribute name="blurRad" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveCoordinate" default="0" /> |
|---|
| 43 | * <attribute name="dist" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveCoordinate" default="0" /> |
|---|
| 44 | * <attribute name="dir" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveFixedAngle" default="0" /> |
|---|
| 45 | * </restriction> |
|---|
| 46 | * </complexContent> |
|---|
| 47 | * </complexType> |
|---|
| 48 | * </pre> |
|---|
| 49 | * |
|---|
| 50 | * |
|---|
| 51 | */ |
|---|
| 52 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 53 | @XmlType(name = "CT_InnerShadowEffect", propOrder = { |
|---|
| 54 | "scrgbClr", |
|---|
| 55 | "srgbClr", |
|---|
| 56 | "hslClr", |
|---|
| 57 | "sysClr", |
|---|
| 58 | "schemeClr", |
|---|
| 59 | "prstClr" |
|---|
| 60 | }) |
|---|
| 61 | public class CTInnerShadowEffect { |
|---|
| 62 | |
|---|
| 63 | protected CTScRgbColor scrgbClr; |
|---|
| 64 | protected CTSRgbColor srgbClr; |
|---|
| 65 | protected CTHslColor hslClr; |
|---|
| 66 | protected CTSystemColor sysClr; |
|---|
| 67 | protected CTSchemeColor schemeClr; |
|---|
| 68 | protected CTPresetColor prstClr; |
|---|
| 69 | @XmlAttribute |
|---|
| 70 | protected Long blurRad; |
|---|
| 71 | @XmlAttribute |
|---|
| 72 | protected Long dist; |
|---|
| 73 | @XmlAttribute |
|---|
| 74 | protected Integer dir; |
|---|
| 75 | |
|---|
| 76 | /** |
|---|
| 77 | * Gets the value of the scrgbClr property. |
|---|
| 78 | * |
|---|
| 79 | * @return |
|---|
| 80 | * possible object is |
|---|
| 81 | * {@link CTScRgbColor } |
|---|
| 82 | * |
|---|
| 83 | */ |
|---|
| 84 | public CTScRgbColor getScrgbClr() { |
|---|
| 85 | return scrgbClr; |
|---|
| 86 | } |
|---|
| 87 | |
|---|
| 88 | /** |
|---|
| 89 | * Sets the value of the scrgbClr property. |
|---|
| 90 | * |
|---|
| 91 | * @param value |
|---|
| 92 | * allowed object is |
|---|
| 93 | * {@link CTScRgbColor } |
|---|
| 94 | * |
|---|
| 95 | */ |
|---|
| 96 | public void setScrgbClr(CTScRgbColor value) { |
|---|
| 97 | this.scrgbClr = value; |
|---|
| 98 | } |
|---|
| 99 | |
|---|
| 100 | /** |
|---|
| 101 | * Gets the value of the srgbClr property. |
|---|
| 102 | * |
|---|
| 103 | * @return |
|---|
| 104 | * possible object is |
|---|
| 105 | * {@link CTSRgbColor } |
|---|
| 106 | * |
|---|
| 107 | */ |
|---|
| 108 | public CTSRgbColor getSrgbClr() { |
|---|
| 109 | return srgbClr; |
|---|
| 110 | } |
|---|
| 111 | |
|---|
| 112 | /** |
|---|
| 113 | * Sets the value of the srgbClr property. |
|---|
| 114 | * |
|---|
| 115 | * @param value |
|---|
| 116 | * allowed object is |
|---|
| 117 | * {@link CTSRgbColor } |
|---|
| 118 | * |
|---|
| 119 | */ |
|---|
| 120 | public void setSrgbClr(CTSRgbColor value) { |
|---|
| 121 | this.srgbClr = value; |
|---|
| 122 | } |
|---|
| 123 | |
|---|
| 124 | /** |
|---|
| 125 | * Gets the value of the hslClr property. |
|---|
| 126 | * |
|---|
| 127 | * @return |
|---|
| 128 | * possible object is |
|---|
| 129 | * {@link CTHslColor } |
|---|
| 130 | * |
|---|
| 131 | */ |
|---|
| 132 | public CTHslColor getHslClr() { |
|---|
| 133 | return hslClr; |
|---|
| 134 | } |
|---|
| 135 | |
|---|
| 136 | /** |
|---|
| 137 | * Sets the value of the hslClr property. |
|---|
| 138 | * |
|---|
| 139 | * @param value |
|---|
| 140 | * allowed object is |
|---|
| 141 | * {@link CTHslColor } |
|---|
| 142 | * |
|---|
| 143 | */ |
|---|
| 144 | public void setHslClr(CTHslColor value) { |
|---|
| 145 | this.hslClr = value; |
|---|
| 146 | } |
|---|
| 147 | |
|---|
| 148 | /** |
|---|
| 149 | * Gets the value of the sysClr property. |
|---|
| 150 | * |
|---|
| 151 | * @return |
|---|
| 152 | * possible object is |
|---|
| 153 | * {@link CTSystemColor } |
|---|
| 154 | * |
|---|
| 155 | */ |
|---|
| 156 | public CTSystemColor getSysClr() { |
|---|
| 157 | return sysClr; |
|---|
| 158 | } |
|---|
| 159 | |
|---|
| 160 | /** |
|---|
| 161 | * Sets the value of the sysClr property. |
|---|
| 162 | * |
|---|
| 163 | * @param value |
|---|
| 164 | * allowed object is |
|---|
| 165 | * {@link CTSystemColor } |
|---|
| 166 | * |
|---|
| 167 | */ |
|---|
| 168 | public void setSysClr(CTSystemColor value) { |
|---|
| 169 | this.sysClr = value; |
|---|
| 170 | } |
|---|
| 171 | |
|---|
| 172 | /** |
|---|
| 173 | * Gets the value of the schemeClr property. |
|---|
| 174 | * |
|---|
| 175 | * @return |
|---|
| 176 | * possible object is |
|---|
| 177 | * {@link CTSchemeColor } |
|---|
| 178 | * |
|---|
| 179 | */ |
|---|
| 180 | public CTSchemeColor getSchemeClr() { |
|---|
| 181 | return schemeClr; |
|---|
| 182 | } |
|---|
| 183 | |
|---|
| 184 | /** |
|---|
| 185 | * Sets the value of the schemeClr property. |
|---|
| 186 | * |
|---|
| 187 | * @param value |
|---|
| 188 | * allowed object is |
|---|
| 189 | * {@link CTSchemeColor } |
|---|
| 190 | * |
|---|
| 191 | */ |
|---|
| 192 | public void setSchemeClr(CTSchemeColor value) { |
|---|
| 193 | this.schemeClr = value; |
|---|
| 194 | } |
|---|
| 195 | |
|---|
| 196 | /** |
|---|
| 197 | * Gets the value of the prstClr property. |
|---|
| 198 | * |
|---|
| 199 | * @return |
|---|
| 200 | * possible object is |
|---|
| 201 | * {@link CTPresetColor } |
|---|
| 202 | * |
|---|
| 203 | */ |
|---|
| 204 | public CTPresetColor getPrstClr() { |
|---|
| 205 | return prstClr; |
|---|
| 206 | } |
|---|
| 207 | |
|---|
| 208 | /** |
|---|
| 209 | * Sets the value of the prstClr property. |
|---|
| 210 | * |
|---|
| 211 | * @param value |
|---|
| 212 | * allowed object is |
|---|
| 213 | * {@link CTPresetColor } |
|---|
| 214 | * |
|---|
| 215 | */ |
|---|
| 216 | public void setPrstClr(CTPresetColor value) { |
|---|
| 217 | this.prstClr = value; |
|---|
| 218 | } |
|---|
| 219 | |
|---|
| 220 | /** |
|---|
| 221 | * Gets the value of the blurRad property. |
|---|
| 222 | * |
|---|
| 223 | * @return |
|---|
| 224 | * possible object is |
|---|
| 225 | * {@link Long } |
|---|
| 226 | * |
|---|
| 227 | */ |
|---|
| 228 | public long getBlurRad() { |
|---|
| 229 | if (blurRad == null) { |
|---|
| 230 | return 0L; |
|---|
| 231 | } else { |
|---|
| 232 | return blurRad; |
|---|
| 233 | } |
|---|
| 234 | } |
|---|
| 235 | |
|---|
| 236 | /** |
|---|
| 237 | * Sets the value of the blurRad property. |
|---|
| 238 | * |
|---|
| 239 | * @param value |
|---|
| 240 | * allowed object is |
|---|
| 241 | * {@link Long } |
|---|
| 242 | * |
|---|
| 243 | */ |
|---|
| 244 | public void setBlurRad(Long value) { |
|---|
| 245 | this.blurRad = value; |
|---|
| 246 | } |
|---|
| 247 | |
|---|
| 248 | /** |
|---|
| 249 | * Gets the value of the dist property. |
|---|
| 250 | * |
|---|
| 251 | * @return |
|---|
| 252 | * possible object is |
|---|
| 253 | * {@link Long } |
|---|
| 254 | * |
|---|
| 255 | */ |
|---|
| 256 | public long getDist() { |
|---|
| 257 | if (dist == null) { |
|---|
| 258 | return 0L; |
|---|
| 259 | } else { |
|---|
| 260 | return dist; |
|---|
| 261 | } |
|---|
| 262 | } |
|---|
| 263 | |
|---|
| 264 | /** |
|---|
| 265 | * Sets the value of the dist property. |
|---|
| 266 | * |
|---|
| 267 | * @param value |
|---|
| 268 | * allowed object is |
|---|
| 269 | * {@link Long } |
|---|
| 270 | * |
|---|
| 271 | */ |
|---|
| 272 | public void setDist(Long value) { |
|---|
| 273 | this.dist = value; |
|---|
| 274 | } |
|---|
| 275 | |
|---|
| 276 | /** |
|---|
| 277 | * Gets the value of the dir property. |
|---|
| 278 | * |
|---|
| 279 | * @return |
|---|
| 280 | * possible object is |
|---|
| 281 | * {@link Integer } |
|---|
| 282 | * |
|---|
| 283 | */ |
|---|
| 284 | public int getDir() { |
|---|
| 285 | if (dir == null) { |
|---|
| 286 | return 0; |
|---|
| 287 | } else { |
|---|
| 288 | return dir; |
|---|
| 289 | } |
|---|
| 290 | } |
|---|
| 291 | |
|---|
| 292 | /** |
|---|
| 293 | * Sets the value of the dir property. |
|---|
| 294 | * |
|---|
| 295 | * @param value |
|---|
| 296 | * allowed object is |
|---|
| 297 | * {@link Integer } |
|---|
| 298 | * |
|---|
| 299 | */ |
|---|
| 300 | public void setDir(Integer value) { |
|---|
| 301 | this.dir = value; |
|---|
| 302 | } |
|---|
| 303 | |
|---|
| 304 | } |
|---|