| 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_Transform2D complex type. |
|---|
| 32 | * |
|---|
| 33 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 34 | * |
|---|
| 35 | * <pre> |
|---|
| 36 | * <complexType name="CT_Transform2D"> |
|---|
| 37 | * <complexContent> |
|---|
| 38 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 39 | * <sequence> |
|---|
| 40 | * <element name="off" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Point2D" minOccurs="0"/> |
|---|
| 41 | * <element name="ext" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_PositiveSize2D" minOccurs="0"/> |
|---|
| 42 | * </sequence> |
|---|
| 43 | * <attribute name="rot" type="{http://schemas.openxmlformats.org/drawingml/2006/main}ST_Angle" default="0" /> |
|---|
| 44 | * <attribute name="flipH" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> |
|---|
| 45 | * <attribute name="flipV" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> |
|---|
| 46 | * </restriction> |
|---|
| 47 | * </complexContent> |
|---|
| 48 | * </complexType> |
|---|
| 49 | * </pre> |
|---|
| 50 | * |
|---|
| 51 | * |
|---|
| 52 | */ |
|---|
| 53 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 54 | @XmlType(name = "CT_Transform2D", propOrder = { |
|---|
| 55 | "off", |
|---|
| 56 | "ext" |
|---|
| 57 | }) |
|---|
| 58 | public class CTTransform2D { |
|---|
| 59 | |
|---|
| 60 | protected CTPoint2D off; |
|---|
| 61 | protected CTPositiveSize2D ext; |
|---|
| 62 | @XmlAttribute |
|---|
| 63 | protected Integer rot; |
|---|
| 64 | @XmlAttribute |
|---|
| 65 | protected Boolean flipH; |
|---|
| 66 | @XmlAttribute |
|---|
| 67 | protected Boolean flipV; |
|---|
| 68 | |
|---|
| 69 | /** |
|---|
| 70 | * Gets the value of the off property. |
|---|
| 71 | * |
|---|
| 72 | * @return |
|---|
| 73 | * possible object is |
|---|
| 74 | * {@link CTPoint2D } |
|---|
| 75 | * |
|---|
| 76 | */ |
|---|
| 77 | public CTPoint2D getOff() { |
|---|
| 78 | return off; |
|---|
| 79 | } |
|---|
| 80 | |
|---|
| 81 | /** |
|---|
| 82 | * Sets the value of the off property. |
|---|
| 83 | * |
|---|
| 84 | * @param value |
|---|
| 85 | * allowed object is |
|---|
| 86 | * {@link CTPoint2D } |
|---|
| 87 | * |
|---|
| 88 | */ |
|---|
| 89 | public void setOff(CTPoint2D value) { |
|---|
| 90 | this.off = value; |
|---|
| 91 | } |
|---|
| 92 | |
|---|
| 93 | /** |
|---|
| 94 | * Gets the value of the ext property. |
|---|
| 95 | * |
|---|
| 96 | * @return |
|---|
| 97 | * possible object is |
|---|
| 98 | * {@link CTPositiveSize2D } |
|---|
| 99 | * |
|---|
| 100 | */ |
|---|
| 101 | public CTPositiveSize2D getExt() { |
|---|
| 102 | return ext; |
|---|
| 103 | } |
|---|
| 104 | |
|---|
| 105 | /** |
|---|
| 106 | * Sets the value of the ext property. |
|---|
| 107 | * |
|---|
| 108 | * @param value |
|---|
| 109 | * allowed object is |
|---|
| 110 | * {@link CTPositiveSize2D } |
|---|
| 111 | * |
|---|
| 112 | */ |
|---|
| 113 | public void setExt(CTPositiveSize2D value) { |
|---|
| 114 | this.ext = value; |
|---|
| 115 | } |
|---|
| 116 | |
|---|
| 117 | /** |
|---|
| 118 | * Gets the value of the rot property. |
|---|
| 119 | * |
|---|
| 120 | * @return |
|---|
| 121 | * possible object is |
|---|
| 122 | * {@link Integer } |
|---|
| 123 | * |
|---|
| 124 | */ |
|---|
| 125 | public int getRot() { |
|---|
| 126 | if (rot == null) { |
|---|
| 127 | return 0; |
|---|
| 128 | } else { |
|---|
| 129 | return rot; |
|---|
| 130 | } |
|---|
| 131 | } |
|---|
| 132 | |
|---|
| 133 | /** |
|---|
| 134 | * Sets the value of the rot property. |
|---|
| 135 | * |
|---|
| 136 | * @param value |
|---|
| 137 | * allowed object is |
|---|
| 138 | * {@link Integer } |
|---|
| 139 | * |
|---|
| 140 | */ |
|---|
| 141 | public void setRot(Integer value) { |
|---|
| 142 | this.rot = value; |
|---|
| 143 | } |
|---|
| 144 | |
|---|
| 145 | /** |
|---|
| 146 | * Gets the value of the flipH property. |
|---|
| 147 | * |
|---|
| 148 | * @return |
|---|
| 149 | * possible object is |
|---|
| 150 | * {@link Boolean } |
|---|
| 151 | * |
|---|
| 152 | */ |
|---|
| 153 | public boolean isFlipH() { |
|---|
| 154 | if (flipH == null) { |
|---|
| 155 | return false; |
|---|
| 156 | } else { |
|---|
| 157 | return flipH; |
|---|
| 158 | } |
|---|
| 159 | } |
|---|
| 160 | |
|---|
| 161 | /** |
|---|
| 162 | * Sets the value of the flipH property. |
|---|
| 163 | * |
|---|
| 164 | * @param value |
|---|
| 165 | * allowed object is |
|---|
| 166 | * {@link Boolean } |
|---|
| 167 | * |
|---|
| 168 | */ |
|---|
| 169 | public void setFlipH(Boolean value) { |
|---|
| 170 | this.flipH = value; |
|---|
| 171 | } |
|---|
| 172 | |
|---|
| 173 | /** |
|---|
| 174 | * Gets the value of the flipV property. |
|---|
| 175 | * |
|---|
| 176 | * @return |
|---|
| 177 | * possible object is |
|---|
| 178 | * {@link Boolean } |
|---|
| 179 | * |
|---|
| 180 | */ |
|---|
| 181 | public boolean isFlipV() { |
|---|
| 182 | if (flipV == null) { |
|---|
| 183 | return false; |
|---|
| 184 | } else { |
|---|
| 185 | return flipV; |
|---|
| 186 | } |
|---|
| 187 | } |
|---|
| 188 | |
|---|
| 189 | /** |
|---|
| 190 | * Sets the value of the flipV property. |
|---|
| 191 | * |
|---|
| 192 | * @param value |
|---|
| 193 | * allowed object is |
|---|
| 194 | * {@link Boolean } |
|---|
| 195 | * |
|---|
| 196 | */ |
|---|
| 197 | public void setFlipV(Boolean value) { |
|---|
| 198 | this.flipV = value; |
|---|
| 199 | } |
|---|
| 200 | |
|---|
| 201 | } |
|---|