| 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_Shape3D complex type. |
|---|
| 32 | * |
|---|
| 33 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 34 | * |
|---|
| 35 | * <pre> |
|---|
| 36 | * <complexType name="CT_Shape3D"> |
|---|
| 37 | * <complexContent> |
|---|
| 38 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 39 | * <sequence> |
|---|
| 40 | * <element name="bevelT" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Bevel" minOccurs="0"/> |
|---|
| 41 | * <element name="bevelB" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Bevel" minOccurs="0"/> |
|---|
| 42 | * <element name="extrusionClr" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Color" minOccurs="0"/> |
|---|
| 43 | * <element name="contourClr" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Color" minOccurs="0"/> |
|---|
| 44 | * <element name="extLst" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_OfficeArtExtensionList" minOccurs="0"/> |
|---|
| 45 | * </sequence> |
|---|
| 46 | * <attribute name="z" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Coordinate" default="0" /> |
|---|
| 47 | * <attribute name="extrusionH" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveCoordinate" default="0" /> |
|---|
| 48 | * <attribute name="contourW" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PositiveCoordinate" default="0" /> |
|---|
| 49 | * <attribute name="prstMaterial" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_PresetMaterialType" default="warmMatte" /> |
|---|
| 50 | * </restriction> |
|---|
| 51 | * </complexContent> |
|---|
| 52 | * </complexType> |
|---|
| 53 | * </pre> |
|---|
| 54 | * |
|---|
| 55 | * |
|---|
| 56 | */ |
|---|
| 57 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 58 | @XmlType(name = "CT_Shape3D", propOrder = { |
|---|
| 59 | "bevelT", |
|---|
| 60 | "bevelB", |
|---|
| 61 | "extrusionClr", |
|---|
| 62 | "contourClr", |
|---|
| 63 | "extLst" |
|---|
| 64 | }) |
|---|
| 65 | public class CTShape3D { |
|---|
| 66 | |
|---|
| 67 | protected CTBevel bevelT; |
|---|
| 68 | protected CTBevel bevelB; |
|---|
| 69 | protected CTColor extrusionClr; |
|---|
| 70 | protected CTColor contourClr; |
|---|
| 71 | protected CTOfficeArtExtensionList extLst; |
|---|
| 72 | @XmlAttribute |
|---|
| 73 | protected Long z; |
|---|
| 74 | @XmlAttribute |
|---|
| 75 | protected Long extrusionH; |
|---|
| 76 | @XmlAttribute |
|---|
| 77 | protected Long contourW; |
|---|
| 78 | @XmlAttribute |
|---|
| 79 | protected STPresetMaterialType prstMaterial; |
|---|
| 80 | |
|---|
| 81 | /** |
|---|
| 82 | * Gets the value of the bevelT property. |
|---|
| 83 | * |
|---|
| 84 | * @return |
|---|
| 85 | * possible object is |
|---|
| 86 | * {@link CTBevel } |
|---|
| 87 | * |
|---|
| 88 | */ |
|---|
| 89 | public CTBevel getBevelT() { |
|---|
| 90 | return bevelT; |
|---|
| 91 | } |
|---|
| 92 | |
|---|
| 93 | /** |
|---|
| 94 | * Sets the value of the bevelT property. |
|---|
| 95 | * |
|---|
| 96 | * @param value |
|---|
| 97 | * allowed object is |
|---|
| 98 | * {@link CTBevel } |
|---|
| 99 | * |
|---|
| 100 | */ |
|---|
| 101 | public void setBevelT(CTBevel value) { |
|---|
| 102 | this.bevelT = value; |
|---|
| 103 | } |
|---|
| 104 | |
|---|
| 105 | /** |
|---|
| 106 | * Gets the value of the bevelB property. |
|---|
| 107 | * |
|---|
| 108 | * @return |
|---|
| 109 | * possible object is |
|---|
| 110 | * {@link CTBevel } |
|---|
| 111 | * |
|---|
| 112 | */ |
|---|
| 113 | public CTBevel getBevelB() { |
|---|
| 114 | return bevelB; |
|---|
| 115 | } |
|---|
| 116 | |
|---|
| 117 | /** |
|---|
| 118 | * Sets the value of the bevelB property. |
|---|
| 119 | * |
|---|
| 120 | * @param value |
|---|
| 121 | * allowed object is |
|---|
| 122 | * {@link CTBevel } |
|---|
| 123 | * |
|---|
| 124 | */ |
|---|
| 125 | public void setBevelB(CTBevel value) { |
|---|
| 126 | this.bevelB = value; |
|---|
| 127 | } |
|---|
| 128 | |
|---|
| 129 | /** |
|---|
| 130 | * Gets the value of the extrusionClr property. |
|---|
| 131 | * |
|---|
| 132 | * @return |
|---|
| 133 | * possible object is |
|---|
| 134 | * {@link CTColor } |
|---|
| 135 | * |
|---|
| 136 | */ |
|---|
| 137 | public CTColor getExtrusionClr() { |
|---|
| 138 | return extrusionClr; |
|---|
| 139 | } |
|---|
| 140 | |
|---|
| 141 | /** |
|---|
| 142 | * Sets the value of the extrusionClr property. |
|---|
| 143 | * |
|---|
| 144 | * @param value |
|---|
| 145 | * allowed object is |
|---|
| 146 | * {@link CTColor } |
|---|
| 147 | * |
|---|
| 148 | */ |
|---|
| 149 | public void setExtrusionClr(CTColor value) { |
|---|
| 150 | this.extrusionClr = value; |
|---|
| 151 | } |
|---|
| 152 | |
|---|
| 153 | /** |
|---|
| 154 | * Gets the value of the contourClr property. |
|---|
| 155 | * |
|---|
| 156 | * @return |
|---|
| 157 | * possible object is |
|---|
| 158 | * {@link CTColor } |
|---|
| 159 | * |
|---|
| 160 | */ |
|---|
| 161 | public CTColor getContourClr() { |
|---|
| 162 | return contourClr; |
|---|
| 163 | } |
|---|
| 164 | |
|---|
| 165 | /** |
|---|
| 166 | * Sets the value of the contourClr property. |
|---|
| 167 | * |
|---|
| 168 | * @param value |
|---|
| 169 | * allowed object is |
|---|
| 170 | * {@link CTColor } |
|---|
| 171 | * |
|---|
| 172 | */ |
|---|
| 173 | public void setContourClr(CTColor value) { |
|---|
| 174 | this.contourClr = value; |
|---|
| 175 | } |
|---|
| 176 | |
|---|
| 177 | /** |
|---|
| 178 | * Gets the value of the extLst property. |
|---|
| 179 | * |
|---|
| 180 | * @return |
|---|
| 181 | * possible object is |
|---|
| 182 | * {@link CTOfficeArtExtensionList } |
|---|
| 183 | * |
|---|
| 184 | */ |
|---|
| 185 | public CTOfficeArtExtensionList getExtLst() { |
|---|
| 186 | return extLst; |
|---|
| 187 | } |
|---|
| 188 | |
|---|
| 189 | /** |
|---|
| 190 | * Sets the value of the extLst property. |
|---|
| 191 | * |
|---|
| 192 | * @param value |
|---|
| 193 | * allowed object is |
|---|
| 194 | * {@link CTOfficeArtExtensionList } |
|---|
| 195 | * |
|---|
| 196 | */ |
|---|
| 197 | public void setExtLst(CTOfficeArtExtensionList value) { |
|---|
| 198 | this.extLst = value; |
|---|
| 199 | } |
|---|
| 200 | |
|---|
| 201 | /** |
|---|
| 202 | * Gets the value of the z property. |
|---|
| 203 | * |
|---|
| 204 | * @return |
|---|
| 205 | * possible object is |
|---|
| 206 | * {@link Long } |
|---|
| 207 | * |
|---|
| 208 | */ |
|---|
| 209 | public long getZ() { |
|---|
| 210 | if (z == null) { |
|---|
| 211 | return 0L; |
|---|
| 212 | } else { |
|---|
| 213 | return z; |
|---|
| 214 | } |
|---|
| 215 | } |
|---|
| 216 | |
|---|
| 217 | /** |
|---|
| 218 | * Sets the value of the z property. |
|---|
| 219 | * |
|---|
| 220 | * @param value |
|---|
| 221 | * allowed object is |
|---|
| 222 | * {@link Long } |
|---|
| 223 | * |
|---|
| 224 | */ |
|---|
| 225 | public void setZ(Long value) { |
|---|
| 226 | this.z = value; |
|---|
| 227 | } |
|---|
| 228 | |
|---|
| 229 | /** |
|---|
| 230 | * Gets the value of the extrusionH property. |
|---|
| 231 | * |
|---|
| 232 | * @return |
|---|
| 233 | * possible object is |
|---|
| 234 | * {@link Long } |
|---|
| 235 | * |
|---|
| 236 | */ |
|---|
| 237 | public long getExtrusionH() { |
|---|
| 238 | if (extrusionH == null) { |
|---|
| 239 | return 0L; |
|---|
| 240 | } else { |
|---|
| 241 | return extrusionH; |
|---|
| 242 | } |
|---|
| 243 | } |
|---|
| 244 | |
|---|
| 245 | /** |
|---|
| 246 | * Sets the value of the extrusionH property. |
|---|
| 247 | * |
|---|
| 248 | * @param value |
|---|
| 249 | * allowed object is |
|---|
| 250 | * {@link Long } |
|---|
| 251 | * |
|---|
| 252 | */ |
|---|
| 253 | public void setExtrusionH(Long value) { |
|---|
| 254 | this.extrusionH = value; |
|---|
| 255 | } |
|---|
| 256 | |
|---|
| 257 | /** |
|---|
| 258 | * Gets the value of the contourW property. |
|---|
| 259 | * |
|---|
| 260 | * @return |
|---|
| 261 | * possible object is |
|---|
| 262 | * {@link Long } |
|---|
| 263 | * |
|---|
| 264 | */ |
|---|
| 265 | public long getContourW() { |
|---|
| 266 | if (contourW == null) { |
|---|
| 267 | return 0L; |
|---|
| 268 | } else { |
|---|
| 269 | return contourW; |
|---|
| 270 | } |
|---|
| 271 | } |
|---|
| 272 | |
|---|
| 273 | /** |
|---|
| 274 | * Sets the value of the contourW property. |
|---|
| 275 | * |
|---|
| 276 | * @param value |
|---|
| 277 | * allowed object is |
|---|
| 278 | * {@link Long } |
|---|
| 279 | * |
|---|
| 280 | */ |
|---|
| 281 | public void setContourW(Long value) { |
|---|
| 282 | this.contourW = value; |
|---|
| 283 | } |
|---|
| 284 | |
|---|
| 285 | /** |
|---|
| 286 | * Gets the value of the prstMaterial property. |
|---|
| 287 | * |
|---|
| 288 | * @return |
|---|
| 289 | * possible object is |
|---|
| 290 | * {@link STPresetMaterialType } |
|---|
| 291 | * |
|---|
| 292 | */ |
|---|
| 293 | public STPresetMaterialType getPrstMaterial() { |
|---|
| 294 | if (prstMaterial == null) { |
|---|
| 295 | return STPresetMaterialType.WARM_MATTE; |
|---|
| 296 | } else { |
|---|
| 297 | return prstMaterial; |
|---|
| 298 | } |
|---|
| 299 | } |
|---|
| 300 | |
|---|
| 301 | /** |
|---|
| 302 | * Sets the value of the prstMaterial property. |
|---|
| 303 | * |
|---|
| 304 | * @param value |
|---|
| 305 | * allowed object is |
|---|
| 306 | * {@link STPresetMaterialType } |
|---|
| 307 | * |
|---|
| 308 | */ |
|---|
| 309 | public void setPrstMaterial(STPresetMaterialType value) { |
|---|
| 310 | this.prstMaterial = value; |
|---|
| 311 | } |
|---|
| 312 | |
|---|
| 313 | } |
|---|