| 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_OuterShadowEffect complex type. |
|---|
| 32 | * |
|---|
| 33 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 34 | * |
|---|
| 35 | * <pre> |
|---|
| 36 | * <complexType name="CT_OuterShadowEffect"> |
|---|
| 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 | * <attribute name="sx" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Percentage" default="100000" /> |
|---|
| 46 | * <attribute name="sy" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Percentage" default="100000" /> |
|---|
| 47 | * <attribute name="kx" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_FixedAngle" default="0" /> |
|---|
| 48 | * <attribute name="ky" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_FixedAngle" default="0" /> |
|---|
| 49 | * <attribute name="algn" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_RectAlignment" default="b" /> |
|---|
| 50 | * <attribute name="rotWithShape" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> |
|---|
| 51 | * </restriction> |
|---|
| 52 | * </complexContent> |
|---|
| 53 | * </complexType> |
|---|
| 54 | * </pre> |
|---|
| 55 | * |
|---|
| 56 | * |
|---|
| 57 | */ |
|---|
| 58 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 59 | @XmlType(name = "CT_OuterShadowEffect", propOrder = { |
|---|
| 60 | "scrgbClr", |
|---|
| 61 | "srgbClr", |
|---|
| 62 | "hslClr", |
|---|
| 63 | "sysClr", |
|---|
| 64 | "schemeClr", |
|---|
| 65 | "prstClr" |
|---|
| 66 | }) |
|---|
| 67 | public class CTOuterShadowEffect { |
|---|
| 68 | |
|---|
| 69 | protected CTScRgbColor scrgbClr; |
|---|
| 70 | protected CTSRgbColor srgbClr; |
|---|
| 71 | protected CTHslColor hslClr; |
|---|
| 72 | protected CTSystemColor sysClr; |
|---|
| 73 | protected CTSchemeColor schemeClr; |
|---|
| 74 | protected CTPresetColor prstClr; |
|---|
| 75 | @XmlAttribute |
|---|
| 76 | protected Long blurRad; |
|---|
| 77 | @XmlAttribute |
|---|
| 78 | protected Long dist; |
|---|
| 79 | @XmlAttribute |
|---|
| 80 | protected Integer dir; |
|---|
| 81 | @XmlAttribute |
|---|
| 82 | protected Integer sx; |
|---|
| 83 | @XmlAttribute |
|---|
| 84 | protected Integer sy; |
|---|
| 85 | @XmlAttribute |
|---|
| 86 | protected Integer kx; |
|---|
| 87 | @XmlAttribute |
|---|
| 88 | protected Integer ky; |
|---|
| 89 | @XmlAttribute |
|---|
| 90 | protected STRectAlignment algn; |
|---|
| 91 | @XmlAttribute |
|---|
| 92 | protected Boolean rotWithShape; |
|---|
| 93 | |
|---|
| 94 | /** |
|---|
| 95 | * Gets the value of the scrgbClr property. |
|---|
| 96 | * |
|---|
| 97 | * @return |
|---|
| 98 | * possible object is |
|---|
| 99 | * {@link CTScRgbColor } |
|---|
| 100 | * |
|---|
| 101 | */ |
|---|
| 102 | public CTScRgbColor getScrgbClr() { |
|---|
| 103 | return scrgbClr; |
|---|
| 104 | } |
|---|
| 105 | |
|---|
| 106 | /** |
|---|
| 107 | * Sets the value of the scrgbClr property. |
|---|
| 108 | * |
|---|
| 109 | * @param value |
|---|
| 110 | * allowed object is |
|---|
| 111 | * {@link CTScRgbColor } |
|---|
| 112 | * |
|---|
| 113 | */ |
|---|
| 114 | public void setScrgbClr(CTScRgbColor value) { |
|---|
| 115 | this.scrgbClr = value; |
|---|
| 116 | } |
|---|
| 117 | |
|---|
| 118 | /** |
|---|
| 119 | * Gets the value of the srgbClr property. |
|---|
| 120 | * |
|---|
| 121 | * @return |
|---|
| 122 | * possible object is |
|---|
| 123 | * {@link CTSRgbColor } |
|---|
| 124 | * |
|---|
| 125 | */ |
|---|
| 126 | public CTSRgbColor getSrgbClr() { |
|---|
| 127 | return srgbClr; |
|---|
| 128 | } |
|---|
| 129 | |
|---|
| 130 | /** |
|---|
| 131 | * Sets the value of the srgbClr property. |
|---|
| 132 | * |
|---|
| 133 | * @param value |
|---|
| 134 | * allowed object is |
|---|
| 135 | * {@link CTSRgbColor } |
|---|
| 136 | * |
|---|
| 137 | */ |
|---|
| 138 | public void setSrgbClr(CTSRgbColor value) { |
|---|
| 139 | this.srgbClr = value; |
|---|
| 140 | } |
|---|
| 141 | |
|---|
| 142 | /** |
|---|
| 143 | * Gets the value of the hslClr property. |
|---|
| 144 | * |
|---|
| 145 | * @return |
|---|
| 146 | * possible object is |
|---|
| 147 | * {@link CTHslColor } |
|---|
| 148 | * |
|---|
| 149 | */ |
|---|
| 150 | public CTHslColor getHslClr() { |
|---|
| 151 | return hslClr; |
|---|
| 152 | } |
|---|
| 153 | |
|---|
| 154 | /** |
|---|
| 155 | * Sets the value of the hslClr property. |
|---|
| 156 | * |
|---|
| 157 | * @param value |
|---|
| 158 | * allowed object is |
|---|
| 159 | * {@link CTHslColor } |
|---|
| 160 | * |
|---|
| 161 | */ |
|---|
| 162 | public void setHslClr(CTHslColor value) { |
|---|
| 163 | this.hslClr = value; |
|---|
| 164 | } |
|---|
| 165 | |
|---|
| 166 | /** |
|---|
| 167 | * Gets the value of the sysClr property. |
|---|
| 168 | * |
|---|
| 169 | * @return |
|---|
| 170 | * possible object is |
|---|
| 171 | * {@link CTSystemColor } |
|---|
| 172 | * |
|---|
| 173 | */ |
|---|
| 174 | public CTSystemColor getSysClr() { |
|---|
| 175 | return sysClr; |
|---|
| 176 | } |
|---|
| 177 | |
|---|
| 178 | /** |
|---|
| 179 | * Sets the value of the sysClr property. |
|---|
| 180 | * |
|---|
| 181 | * @param value |
|---|
| 182 | * allowed object is |
|---|
| 183 | * {@link CTSystemColor } |
|---|
| 184 | * |
|---|
| 185 | */ |
|---|
| 186 | public void setSysClr(CTSystemColor value) { |
|---|
| 187 | this.sysClr = value; |
|---|
| 188 | } |
|---|
| 189 | |
|---|
| 190 | /** |
|---|
| 191 | * Gets the value of the schemeClr property. |
|---|
| 192 | * |
|---|
| 193 | * @return |
|---|
| 194 | * possible object is |
|---|
| 195 | * {@link CTSchemeColor } |
|---|
| 196 | * |
|---|
| 197 | */ |
|---|
| 198 | public CTSchemeColor getSchemeClr() { |
|---|
| 199 | return schemeClr; |
|---|
| 200 | } |
|---|
| 201 | |
|---|
| 202 | /** |
|---|
| 203 | * Sets the value of the schemeClr property. |
|---|
| 204 | * |
|---|
| 205 | * @param value |
|---|
| 206 | * allowed object is |
|---|
| 207 | * {@link CTSchemeColor } |
|---|
| 208 | * |
|---|
| 209 | */ |
|---|
| 210 | public void setSchemeClr(CTSchemeColor value) { |
|---|
| 211 | this.schemeClr = value; |
|---|
| 212 | } |
|---|
| 213 | |
|---|
| 214 | /** |
|---|
| 215 | * Gets the value of the prstClr property. |
|---|
| 216 | * |
|---|
| 217 | * @return |
|---|
| 218 | * possible object is |
|---|
| 219 | * {@link CTPresetColor } |
|---|
| 220 | * |
|---|
| 221 | */ |
|---|
| 222 | public CTPresetColor getPrstClr() { |
|---|
| 223 | return prstClr; |
|---|
| 224 | } |
|---|
| 225 | |
|---|
| 226 | /** |
|---|
| 227 | * Sets the value of the prstClr property. |
|---|
| 228 | * |
|---|
| 229 | * @param value |
|---|
| 230 | * allowed object is |
|---|
| 231 | * {@link CTPresetColor } |
|---|
| 232 | * |
|---|
| 233 | */ |
|---|
| 234 | public void setPrstClr(CTPresetColor value) { |
|---|
| 235 | this.prstClr = value; |
|---|
| 236 | } |
|---|
| 237 | |
|---|
| 238 | /** |
|---|
| 239 | * Gets the value of the blurRad property. |
|---|
| 240 | * |
|---|
| 241 | * @return |
|---|
| 242 | * possible object is |
|---|
| 243 | * {@link Long } |
|---|
| 244 | * |
|---|
| 245 | */ |
|---|
| 246 | public long getBlurRad() { |
|---|
| 247 | if (blurRad == null) { |
|---|
| 248 | return 0L; |
|---|
| 249 | } else { |
|---|
| 250 | return blurRad; |
|---|
| 251 | } |
|---|
| 252 | } |
|---|
| 253 | |
|---|
| 254 | /** |
|---|
| 255 | * Sets the value of the blurRad property. |
|---|
| 256 | * |
|---|
| 257 | * @param value |
|---|
| 258 | * allowed object is |
|---|
| 259 | * {@link Long } |
|---|
| 260 | * |
|---|
| 261 | */ |
|---|
| 262 | public void setBlurRad(Long value) { |
|---|
| 263 | this.blurRad = value; |
|---|
| 264 | } |
|---|
| 265 | |
|---|
| 266 | /** |
|---|
| 267 | * Gets the value of the dist property. |
|---|
| 268 | * |
|---|
| 269 | * @return |
|---|
| 270 | * possible object is |
|---|
| 271 | * {@link Long } |
|---|
| 272 | * |
|---|
| 273 | */ |
|---|
| 274 | public long getDist() { |
|---|
| 275 | if (dist == null) { |
|---|
| 276 | return 0L; |
|---|
| 277 | } else { |
|---|
| 278 | return dist; |
|---|
| 279 | } |
|---|
| 280 | } |
|---|
| 281 | |
|---|
| 282 | /** |
|---|
| 283 | * Sets the value of the dist property. |
|---|
| 284 | * |
|---|
| 285 | * @param value |
|---|
| 286 | * allowed object is |
|---|
| 287 | * {@link Long } |
|---|
| 288 | * |
|---|
| 289 | */ |
|---|
| 290 | public void setDist(Long value) { |
|---|
| 291 | this.dist = value; |
|---|
| 292 | } |
|---|
| 293 | |
|---|
| 294 | /** |
|---|
| 295 | * Gets the value of the dir property. |
|---|
| 296 | * |
|---|
| 297 | * @return |
|---|
| 298 | * possible object is |
|---|
| 299 | * {@link Integer } |
|---|
| 300 | * |
|---|
| 301 | */ |
|---|
| 302 | public int getDir() { |
|---|
| 303 | if (dir == null) { |
|---|
| 304 | return 0; |
|---|
| 305 | } else { |
|---|
| 306 | return dir; |
|---|
| 307 | } |
|---|
| 308 | } |
|---|
| 309 | |
|---|
| 310 | /** |
|---|
| 311 | * Sets the value of the dir property. |
|---|
| 312 | * |
|---|
| 313 | * @param value |
|---|
| 314 | * allowed object is |
|---|
| 315 | * {@link Integer } |
|---|
| 316 | * |
|---|
| 317 | */ |
|---|
| 318 | public void setDir(Integer value) { |
|---|
| 319 | this.dir = value; |
|---|
| 320 | } |
|---|
| 321 | |
|---|
| 322 | /** |
|---|
| 323 | * Gets the value of the sx property. |
|---|
| 324 | * |
|---|
| 325 | * @return |
|---|
| 326 | * possible object is |
|---|
| 327 | * {@link Integer } |
|---|
| 328 | * |
|---|
| 329 | */ |
|---|
| 330 | public int getSx() { |
|---|
| 331 | if (sx == null) { |
|---|
| 332 | return 100000; |
|---|
| 333 | } else { |
|---|
| 334 | return sx; |
|---|
| 335 | } |
|---|
| 336 | } |
|---|
| 337 | |
|---|
| 338 | /** |
|---|
| 339 | * Sets the value of the sx property. |
|---|
| 340 | * |
|---|
| 341 | * @param value |
|---|
| 342 | * allowed object is |
|---|
| 343 | * {@link Integer } |
|---|
| 344 | * |
|---|
| 345 | */ |
|---|
| 346 | public void setSx(Integer value) { |
|---|
| 347 | this.sx = value; |
|---|
| 348 | } |
|---|
| 349 | |
|---|
| 350 | /** |
|---|
| 351 | * Gets the value of the sy property. |
|---|
| 352 | * |
|---|
| 353 | * @return |
|---|
| 354 | * possible object is |
|---|
| 355 | * {@link Integer } |
|---|
| 356 | * |
|---|
| 357 | */ |
|---|
| 358 | public int getSy() { |
|---|
| 359 | if (sy == null) { |
|---|
| 360 | return 100000; |
|---|
| 361 | } else { |
|---|
| 362 | return sy; |
|---|
| 363 | } |
|---|
| 364 | } |
|---|
| 365 | |
|---|
| 366 | /** |
|---|
| 367 | * Sets the value of the sy property. |
|---|
| 368 | * |
|---|
| 369 | * @param value |
|---|
| 370 | * allowed object is |
|---|
| 371 | * {@link Integer } |
|---|
| 372 | * |
|---|
| 373 | */ |
|---|
| 374 | public void setSy(Integer value) { |
|---|
| 375 | this.sy = value; |
|---|
| 376 | } |
|---|
| 377 | |
|---|
| 378 | /** |
|---|
| 379 | * Gets the value of the kx property. |
|---|
| 380 | * |
|---|
| 381 | * @return |
|---|
| 382 | * possible object is |
|---|
| 383 | * {@link Integer } |
|---|
| 384 | * |
|---|
| 385 | */ |
|---|
| 386 | public int getKx() { |
|---|
| 387 | if (kx == null) { |
|---|
| 388 | return 0; |
|---|
| 389 | } else { |
|---|
| 390 | return kx; |
|---|
| 391 | } |
|---|
| 392 | } |
|---|
| 393 | |
|---|
| 394 | /** |
|---|
| 395 | * Sets the value of the kx property. |
|---|
| 396 | * |
|---|
| 397 | * @param value |
|---|
| 398 | * allowed object is |
|---|
| 399 | * {@link Integer } |
|---|
| 400 | * |
|---|
| 401 | */ |
|---|
| 402 | public void setKx(Integer value) { |
|---|
| 403 | this.kx = value; |
|---|
| 404 | } |
|---|
| 405 | |
|---|
| 406 | /** |
|---|
| 407 | * Gets the value of the ky property. |
|---|
| 408 | * |
|---|
| 409 | * @return |
|---|
| 410 | * possible object is |
|---|
| 411 | * {@link Integer } |
|---|
| 412 | * |
|---|
| 413 | */ |
|---|
| 414 | public int getKy() { |
|---|
| 415 | if (ky == null) { |
|---|
| 416 | return 0; |
|---|
| 417 | } else { |
|---|
| 418 | return ky; |
|---|
| 419 | } |
|---|
| 420 | } |
|---|
| 421 | |
|---|
| 422 | /** |
|---|
| 423 | * Sets the value of the ky property. |
|---|
| 424 | * |
|---|
| 425 | * @param value |
|---|
| 426 | * allowed object is |
|---|
| 427 | * {@link Integer } |
|---|
| 428 | * |
|---|
| 429 | */ |
|---|
| 430 | public void setKy(Integer value) { |
|---|
| 431 | this.ky = value; |
|---|
| 432 | } |
|---|
| 433 | |
|---|
| 434 | /** |
|---|
| 435 | * Gets the value of the algn property. |
|---|
| 436 | * |
|---|
| 437 | * @return |
|---|
| 438 | * possible object is |
|---|
| 439 | * {@link STRectAlignment } |
|---|
| 440 | * |
|---|
| 441 | */ |
|---|
| 442 | public STRectAlignment getAlgn() { |
|---|
| 443 | if (algn == null) { |
|---|
| 444 | return STRectAlignment.B; |
|---|
| 445 | } else { |
|---|
| 446 | return algn; |
|---|
| 447 | } |
|---|
| 448 | } |
|---|
| 449 | |
|---|
| 450 | /** |
|---|
| 451 | * Sets the value of the algn property. |
|---|
| 452 | * |
|---|
| 453 | * @param value |
|---|
| 454 | * allowed object is |
|---|
| 455 | * {@link STRectAlignment } |
|---|
| 456 | * |
|---|
| 457 | */ |
|---|
| 458 | public void setAlgn(STRectAlignment value) { |
|---|
| 459 | this.algn = value; |
|---|
| 460 | } |
|---|
| 461 | |
|---|
| 462 | /** |
|---|
| 463 | * Gets the value of the rotWithShape property. |
|---|
| 464 | * |
|---|
| 465 | * @return |
|---|
| 466 | * possible object is |
|---|
| 467 | * {@link Boolean } |
|---|
| 468 | * |
|---|
| 469 | */ |
|---|
| 470 | public boolean isRotWithShape() { |
|---|
| 471 | if (rotWithShape == null) { |
|---|
| 472 | return true; |
|---|
| 473 | } else { |
|---|
| 474 | return rotWithShape; |
|---|
| 475 | } |
|---|
| 476 | } |
|---|
| 477 | |
|---|
| 478 | /** |
|---|
| 479 | * Sets the value of the rotWithShape property. |
|---|
| 480 | * |
|---|
| 481 | * @param value |
|---|
| 482 | * allowed object is |
|---|
| 483 | * {@link Boolean } |
|---|
| 484 | * |
|---|
| 485 | */ |
|---|
| 486 | public void setRotWithShape(Boolean value) { |
|---|
| 487 | this.rotWithShape = value; |
|---|
| 488 | } |
|---|
| 489 | |
|---|
| 490 | } |
|---|