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