| 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.XmlElement; |
|---|
| 28 | import javax.xml.bind.annotation.XmlType; |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | /** |
|---|
| 32 | * <p>Java class for CT_ShapeProperties complex type. |
|---|
| 33 | * |
|---|
| 34 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 35 | * |
|---|
| 36 | * <pre> |
|---|
| 37 | * <complexType name="CT_ShapeProperties"> |
|---|
| 38 | * <complexContent> |
|---|
| 39 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 40 | * <sequence> |
|---|
| 41 | * <element name="xfrm" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Transform2D" minOccurs="0"/> |
|---|
| 42 | * <group ref="{http://schemas.openxmlformats.org/drawingml/2006/main}EG_Geometry" minOccurs="0"/> |
|---|
| 43 | * <group ref="{http://schemas.openxmlformats.org/drawingml/2006/main}EG_FillProperties" minOccurs="0"/> |
|---|
| 44 | * <element name="ln" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_LineProperties" minOccurs="0"/> |
|---|
| 45 | * <group ref="{http://schemas.openxmlformats.org/drawingml/2006/main}EG_EffectProperties" minOccurs="0"/> |
|---|
| 46 | * <element name="scene3d" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Scene3D" minOccurs="0"/> |
|---|
| 47 | * <element name="sp3d" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Shape3D" minOccurs="0"/> |
|---|
| 48 | * <element name="extLst" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_OfficeArtExtensionList" minOccurs="0"/> |
|---|
| 49 | * </sequence> |
|---|
| 50 | * <attribute name="bwMode" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_BlackWhiteMode" /> |
|---|
| 51 | * </restriction> |
|---|
| 52 | * </complexContent> |
|---|
| 53 | * </complexType> |
|---|
| 54 | * </pre> |
|---|
| 55 | * |
|---|
| 56 | * |
|---|
| 57 | */ |
|---|
| 58 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 59 | @XmlType(name = "CT_ShapeProperties", propOrder = { |
|---|
| 60 | "xfrm", |
|---|
| 61 | "custGeom", |
|---|
| 62 | "prstGeom", |
|---|
| 63 | "noFill", |
|---|
| 64 | "solidFill", |
|---|
| 65 | "gradFill", |
|---|
| 66 | "blipFill", |
|---|
| 67 | "pattFill", |
|---|
| 68 | "grpFill", |
|---|
| 69 | "ln", |
|---|
| 70 | "effectLst", |
|---|
| 71 | "effectDag", |
|---|
| 72 | "scene3D", |
|---|
| 73 | "sp3D", |
|---|
| 74 | "extLst" |
|---|
| 75 | }) |
|---|
| 76 | public class CTShapeProperties { |
|---|
| 77 | |
|---|
| 78 | protected CTTransform2D xfrm; |
|---|
| 79 | protected CTCustomGeometry2D custGeom; |
|---|
| 80 | protected CTPresetGeometry2D prstGeom; |
|---|
| 81 | protected CTNoFillProperties noFill; |
|---|
| 82 | protected CTSolidColorFillProperties solidFill; |
|---|
| 83 | protected CTGradientFillProperties gradFill; |
|---|
| 84 | protected CTBlipFillProperties blipFill; |
|---|
| 85 | protected CTPatternFillProperties pattFill; |
|---|
| 86 | protected CTGroupFillProperties grpFill; |
|---|
| 87 | protected CTLineProperties ln; |
|---|
| 88 | protected CTEffectList effectLst; |
|---|
| 89 | protected CTEffectContainer effectDag; |
|---|
| 90 | @XmlElement(name = "scene3d") |
|---|
| 91 | protected CTScene3D scene3D; |
|---|
| 92 | @XmlElement(name = "sp3d") |
|---|
| 93 | protected CTShape3D sp3D; |
|---|
| 94 | protected CTOfficeArtExtensionList extLst; |
|---|
| 95 | @XmlAttribute |
|---|
| 96 | protected STBlackWhiteMode bwMode; |
|---|
| 97 | |
|---|
| 98 | /** |
|---|
| 99 | * Gets the value of the xfrm property. |
|---|
| 100 | * |
|---|
| 101 | * @return |
|---|
| 102 | * possible object is |
|---|
| 103 | * {@link CTTransform2D } |
|---|
| 104 | * |
|---|
| 105 | */ |
|---|
| 106 | public CTTransform2D getXfrm() { |
|---|
| 107 | return xfrm; |
|---|
| 108 | } |
|---|
| 109 | |
|---|
| 110 | /** |
|---|
| 111 | * Sets the value of the xfrm property. |
|---|
| 112 | * |
|---|
| 113 | * @param value |
|---|
| 114 | * allowed object is |
|---|
| 115 | * {@link CTTransform2D } |
|---|
| 116 | * |
|---|
| 117 | */ |
|---|
| 118 | public void setXfrm(CTTransform2D value) { |
|---|
| 119 | this.xfrm = value; |
|---|
| 120 | } |
|---|
| 121 | |
|---|
| 122 | /** |
|---|
| 123 | * Gets the value of the custGeom property. |
|---|
| 124 | * |
|---|
| 125 | * @return |
|---|
| 126 | * possible object is |
|---|
| 127 | * {@link CTCustomGeometry2D } |
|---|
| 128 | * |
|---|
| 129 | */ |
|---|
| 130 | public CTCustomGeometry2D getCustGeom() { |
|---|
| 131 | return custGeom; |
|---|
| 132 | } |
|---|
| 133 | |
|---|
| 134 | /** |
|---|
| 135 | * Sets the value of the custGeom property. |
|---|
| 136 | * |
|---|
| 137 | * @param value |
|---|
| 138 | * allowed object is |
|---|
| 139 | * {@link CTCustomGeometry2D } |
|---|
| 140 | * |
|---|
| 141 | */ |
|---|
| 142 | public void setCustGeom(CTCustomGeometry2D value) { |
|---|
| 143 | this.custGeom = value; |
|---|
| 144 | } |
|---|
| 145 | |
|---|
| 146 | /** |
|---|
| 147 | * Gets the value of the prstGeom property. |
|---|
| 148 | * |
|---|
| 149 | * @return |
|---|
| 150 | * possible object is |
|---|
| 151 | * {@link CTPresetGeometry2D } |
|---|
| 152 | * |
|---|
| 153 | */ |
|---|
| 154 | public CTPresetGeometry2D getPrstGeom() { |
|---|
| 155 | return prstGeom; |
|---|
| 156 | } |
|---|
| 157 | |
|---|
| 158 | /** |
|---|
| 159 | * Sets the value of the prstGeom property. |
|---|
| 160 | * |
|---|
| 161 | * @param value |
|---|
| 162 | * allowed object is |
|---|
| 163 | * {@link CTPresetGeometry2D } |
|---|
| 164 | * |
|---|
| 165 | */ |
|---|
| 166 | public void setPrstGeom(CTPresetGeometry2D value) { |
|---|
| 167 | this.prstGeom = value; |
|---|
| 168 | } |
|---|
| 169 | |
|---|
| 170 | /** |
|---|
| 171 | * Gets the value of the noFill property. |
|---|
| 172 | * |
|---|
| 173 | * @return |
|---|
| 174 | * possible object is |
|---|
| 175 | * {@link CTNoFillProperties } |
|---|
| 176 | * |
|---|
| 177 | */ |
|---|
| 178 | public CTNoFillProperties getNoFill() { |
|---|
| 179 | return noFill; |
|---|
| 180 | } |
|---|
| 181 | |
|---|
| 182 | /** |
|---|
| 183 | * Sets the value of the noFill property. |
|---|
| 184 | * |
|---|
| 185 | * @param value |
|---|
| 186 | * allowed object is |
|---|
| 187 | * {@link CTNoFillProperties } |
|---|
| 188 | * |
|---|
| 189 | */ |
|---|
| 190 | public void setNoFill(CTNoFillProperties value) { |
|---|
| 191 | this.noFill = value; |
|---|
| 192 | } |
|---|
| 193 | |
|---|
| 194 | /** |
|---|
| 195 | * Gets the value of the solidFill property. |
|---|
| 196 | * |
|---|
| 197 | * @return |
|---|
| 198 | * possible object is |
|---|
| 199 | * {@link CTSolidColorFillProperties } |
|---|
| 200 | * |
|---|
| 201 | */ |
|---|
| 202 | public CTSolidColorFillProperties getSolidFill() { |
|---|
| 203 | return solidFill; |
|---|
| 204 | } |
|---|
| 205 | |
|---|
| 206 | /** |
|---|
| 207 | * Sets the value of the solidFill property. |
|---|
| 208 | * |
|---|
| 209 | * @param value |
|---|
| 210 | * allowed object is |
|---|
| 211 | * {@link CTSolidColorFillProperties } |
|---|
| 212 | * |
|---|
| 213 | */ |
|---|
| 214 | public void setSolidFill(CTSolidColorFillProperties value) { |
|---|
| 215 | this.solidFill = value; |
|---|
| 216 | } |
|---|
| 217 | |
|---|
| 218 | /** |
|---|
| 219 | * Gets the value of the gradFill property. |
|---|
| 220 | * |
|---|
| 221 | * @return |
|---|
| 222 | * possible object is |
|---|
| 223 | * {@link CTGradientFillProperties } |
|---|
| 224 | * |
|---|
| 225 | */ |
|---|
| 226 | public CTGradientFillProperties getGradFill() { |
|---|
| 227 | return gradFill; |
|---|
| 228 | } |
|---|
| 229 | |
|---|
| 230 | /** |
|---|
| 231 | * Sets the value of the gradFill property. |
|---|
| 232 | * |
|---|
| 233 | * @param value |
|---|
| 234 | * allowed object is |
|---|
| 235 | * {@link CTGradientFillProperties } |
|---|
| 236 | * |
|---|
| 237 | */ |
|---|
| 238 | public void setGradFill(CTGradientFillProperties value) { |
|---|
| 239 | this.gradFill = value; |
|---|
| 240 | } |
|---|
| 241 | |
|---|
| 242 | /** |
|---|
| 243 | * Gets the value of the blipFill property. |
|---|
| 244 | * |
|---|
| 245 | * @return |
|---|
| 246 | * possible object is |
|---|
| 247 | * {@link CTBlipFillProperties } |
|---|
| 248 | * |
|---|
| 249 | */ |
|---|
| 250 | public CTBlipFillProperties getBlipFill() { |
|---|
| 251 | return blipFill; |
|---|
| 252 | } |
|---|
| 253 | |
|---|
| 254 | /** |
|---|
| 255 | * Sets the value of the blipFill property. |
|---|
| 256 | * |
|---|
| 257 | * @param value |
|---|
| 258 | * allowed object is |
|---|
| 259 | * {@link CTBlipFillProperties } |
|---|
| 260 | * |
|---|
| 261 | */ |
|---|
| 262 | public void setBlipFill(CTBlipFillProperties value) { |
|---|
| 263 | this.blipFill = value; |
|---|
| 264 | } |
|---|
| 265 | |
|---|
| 266 | /** |
|---|
| 267 | * Gets the value of the pattFill property. |
|---|
| 268 | * |
|---|
| 269 | * @return |
|---|
| 270 | * possible object is |
|---|
| 271 | * {@link CTPatternFillProperties } |
|---|
| 272 | * |
|---|
| 273 | */ |
|---|
| 274 | public CTPatternFillProperties getPattFill() { |
|---|
| 275 | return pattFill; |
|---|
| 276 | } |
|---|
| 277 | |
|---|
| 278 | /** |
|---|
| 279 | * Sets the value of the pattFill property. |
|---|
| 280 | * |
|---|
| 281 | * @param value |
|---|
| 282 | * allowed object is |
|---|
| 283 | * {@link CTPatternFillProperties } |
|---|
| 284 | * |
|---|
| 285 | */ |
|---|
| 286 | public void setPattFill(CTPatternFillProperties value) { |
|---|
| 287 | this.pattFill = value; |
|---|
| 288 | } |
|---|
| 289 | |
|---|
| 290 | /** |
|---|
| 291 | * Gets the value of the grpFill property. |
|---|
| 292 | * |
|---|
| 293 | * @return |
|---|
| 294 | * possible object is |
|---|
| 295 | * {@link CTGroupFillProperties } |
|---|
| 296 | * |
|---|
| 297 | */ |
|---|
| 298 | public CTGroupFillProperties getGrpFill() { |
|---|
| 299 | return grpFill; |
|---|
| 300 | } |
|---|
| 301 | |
|---|
| 302 | /** |
|---|
| 303 | * Sets the value of the grpFill property. |
|---|
| 304 | * |
|---|
| 305 | * @param value |
|---|
| 306 | * allowed object is |
|---|
| 307 | * {@link CTGroupFillProperties } |
|---|
| 308 | * |
|---|
| 309 | */ |
|---|
| 310 | public void setGrpFill(CTGroupFillProperties value) { |
|---|
| 311 | this.grpFill = value; |
|---|
| 312 | } |
|---|
| 313 | |
|---|
| 314 | /** |
|---|
| 315 | * Gets the value of the ln property. |
|---|
| 316 | * |
|---|
| 317 | * @return |
|---|
| 318 | * possible object is |
|---|
| 319 | * {@link CTLineProperties } |
|---|
| 320 | * |
|---|
| 321 | */ |
|---|
| 322 | public CTLineProperties getLn() { |
|---|
| 323 | return ln; |
|---|
| 324 | } |
|---|
| 325 | |
|---|
| 326 | /** |
|---|
| 327 | * Sets the value of the ln property. |
|---|
| 328 | * |
|---|
| 329 | * @param value |
|---|
| 330 | * allowed object is |
|---|
| 331 | * {@link CTLineProperties } |
|---|
| 332 | * |
|---|
| 333 | */ |
|---|
| 334 | public void setLn(CTLineProperties value) { |
|---|
| 335 | this.ln = value; |
|---|
| 336 | } |
|---|
| 337 | |
|---|
| 338 | /** |
|---|
| 339 | * Gets the value of the effectLst property. |
|---|
| 340 | * |
|---|
| 341 | * @return |
|---|
| 342 | * possible object is |
|---|
| 343 | * {@link CTEffectList } |
|---|
| 344 | * |
|---|
| 345 | */ |
|---|
| 346 | public CTEffectList getEffectLst() { |
|---|
| 347 | return effectLst; |
|---|
| 348 | } |
|---|
| 349 | |
|---|
| 350 | /** |
|---|
| 351 | * Sets the value of the effectLst property. |
|---|
| 352 | * |
|---|
| 353 | * @param value |
|---|
| 354 | * allowed object is |
|---|
| 355 | * {@link CTEffectList } |
|---|
| 356 | * |
|---|
| 357 | */ |
|---|
| 358 | public void setEffectLst(CTEffectList value) { |
|---|
| 359 | this.effectLst = value; |
|---|
| 360 | } |
|---|
| 361 | |
|---|
| 362 | /** |
|---|
| 363 | * Gets the value of the effectDag property. |
|---|
| 364 | * |
|---|
| 365 | * @return |
|---|
| 366 | * possible object is |
|---|
| 367 | * {@link CTEffectContainer } |
|---|
| 368 | * |
|---|
| 369 | */ |
|---|
| 370 | public CTEffectContainer getEffectDag() { |
|---|
| 371 | return effectDag; |
|---|
| 372 | } |
|---|
| 373 | |
|---|
| 374 | /** |
|---|
| 375 | * Sets the value of the effectDag property. |
|---|
| 376 | * |
|---|
| 377 | * @param value |
|---|
| 378 | * allowed object is |
|---|
| 379 | * {@link CTEffectContainer } |
|---|
| 380 | * |
|---|
| 381 | */ |
|---|
| 382 | public void setEffectDag(CTEffectContainer value) { |
|---|
| 383 | this.effectDag = value; |
|---|
| 384 | } |
|---|
| 385 | |
|---|
| 386 | /** |
|---|
| 387 | * Gets the value of the scene3D property. |
|---|
| 388 | * |
|---|
| 389 | * @return |
|---|
| 390 | * possible object is |
|---|
| 391 | * {@link CTScene3D } |
|---|
| 392 | * |
|---|
| 393 | */ |
|---|
| 394 | public CTScene3D getScene3D() { |
|---|
| 395 | return scene3D; |
|---|
| 396 | } |
|---|
| 397 | |
|---|
| 398 | /** |
|---|
| 399 | * Sets the value of the scene3D property. |
|---|
| 400 | * |
|---|
| 401 | * @param value |
|---|
| 402 | * allowed object is |
|---|
| 403 | * {@link CTScene3D } |
|---|
| 404 | * |
|---|
| 405 | */ |
|---|
| 406 | public void setScene3D(CTScene3D value) { |
|---|
| 407 | this.scene3D = value; |
|---|
| 408 | } |
|---|
| 409 | |
|---|
| 410 | /** |
|---|
| 411 | * Gets the value of the sp3D property. |
|---|
| 412 | * |
|---|
| 413 | * @return |
|---|
| 414 | * possible object is |
|---|
| 415 | * {@link CTShape3D } |
|---|
| 416 | * |
|---|
| 417 | */ |
|---|
| 418 | public CTShape3D getSp3D() { |
|---|
| 419 | return sp3D; |
|---|
| 420 | } |
|---|
| 421 | |
|---|
| 422 | /** |
|---|
| 423 | * Sets the value of the sp3D property. |
|---|
| 424 | * |
|---|
| 425 | * @param value |
|---|
| 426 | * allowed object is |
|---|
| 427 | * {@link CTShape3D } |
|---|
| 428 | * |
|---|
| 429 | */ |
|---|
| 430 | public void setSp3D(CTShape3D value) { |
|---|
| 431 | this.sp3D = value; |
|---|
| 432 | } |
|---|
| 433 | |
|---|
| 434 | /** |
|---|
| 435 | * Gets the value of the extLst property. |
|---|
| 436 | * |
|---|
| 437 | * @return |
|---|
| 438 | * possible object is |
|---|
| 439 | * {@link CTOfficeArtExtensionList } |
|---|
| 440 | * |
|---|
| 441 | */ |
|---|
| 442 | public CTOfficeArtExtensionList getExtLst() { |
|---|
| 443 | return extLst; |
|---|
| 444 | } |
|---|
| 445 | |
|---|
| 446 | /** |
|---|
| 447 | * Sets the value of the extLst property. |
|---|
| 448 | * |
|---|
| 449 | * @param value |
|---|
| 450 | * allowed object is |
|---|
| 451 | * {@link CTOfficeArtExtensionList } |
|---|
| 452 | * |
|---|
| 453 | */ |
|---|
| 454 | public void setExtLst(CTOfficeArtExtensionList value) { |
|---|
| 455 | this.extLst = value; |
|---|
| 456 | } |
|---|
| 457 | |
|---|
| 458 | /** |
|---|
| 459 | * Gets the value of the bwMode property. |
|---|
| 460 | * |
|---|
| 461 | * @return |
|---|
| 462 | * possible object is |
|---|
| 463 | * {@link STBlackWhiteMode } |
|---|
| 464 | * |
|---|
| 465 | */ |
|---|
| 466 | public STBlackWhiteMode getBwMode() { |
|---|
| 467 | return bwMode; |
|---|
| 468 | } |
|---|
| 469 | |
|---|
| 470 | /** |
|---|
| 471 | * Sets the value of the bwMode property. |
|---|
| 472 | * |
|---|
| 473 | * @param value |
|---|
| 474 | * allowed object is |
|---|
| 475 | * {@link STBlackWhiteMode } |
|---|
| 476 | * |
|---|
| 477 | */ |
|---|
| 478 | public void setBwMode(STBlackWhiteMode value) { |
|---|
| 479 | this.bwMode = value; |
|---|
| 480 | } |
|---|
| 481 | |
|---|
| 482 | } |
|---|