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