| 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.XmlSchemaType; |
|---|
| 28 | import javax.xml.bind.annotation.XmlType; |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | /** |
|---|
| 32 | * <p>Java class for CT_BlipFillProperties complex type. |
|---|
| 33 | * |
|---|
| 34 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 35 | * |
|---|
| 36 | * <pre> |
|---|
| 37 | * <complexType name="CT_BlipFillProperties"> |
|---|
| 38 | * <complexContent> |
|---|
| 39 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 40 | * <sequence> |
|---|
| 41 | * <element name="blip" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_Blip" minOccurs="0"/> |
|---|
| 42 | * <element name="srcRect" type="{http://schemas.openxmlformats.org/drawingml/2006/main}CT_RelativeRect" minOccurs="0"/> |
|---|
| 43 | * <group ref="{http://schemas.openxmlformats.org/drawingml/2006/main}EG_FillModeProperties" minOccurs="0"/> |
|---|
| 44 | * </sequence> |
|---|
| 45 | * <attribute name="dpi" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" /> |
|---|
| 46 | * <attribute name="rotWithShape" type="{http://www.w3.org/2001/XMLSchema}boolean" /> |
|---|
| 47 | * </restriction> |
|---|
| 48 | * </complexContent> |
|---|
| 49 | * </complexType> |
|---|
| 50 | * </pre> |
|---|
| 51 | * |
|---|
| 52 | * |
|---|
| 53 | */ |
|---|
| 54 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 55 | @XmlType(name = "CT_BlipFillProperties", propOrder = { |
|---|
| 56 | "blip", |
|---|
| 57 | "srcRect", |
|---|
| 58 | "tile", |
|---|
| 59 | "stretch" |
|---|
| 60 | }) |
|---|
| 61 | public class CTBlipFillProperties { |
|---|
| 62 | |
|---|
| 63 | protected CTBlip blip; |
|---|
| 64 | protected CTRelativeRect srcRect; |
|---|
| 65 | protected CTTileInfoProperties tile; |
|---|
| 66 | protected CTStretchInfoProperties stretch; |
|---|
| 67 | @XmlAttribute |
|---|
| 68 | @XmlSchemaType(name = "unsignedInt") |
|---|
| 69 | protected Long dpi; |
|---|
| 70 | @XmlAttribute |
|---|
| 71 | protected Boolean rotWithShape; |
|---|
| 72 | |
|---|
| 73 | /** |
|---|
| 74 | * Gets the value of the blip property. |
|---|
| 75 | * |
|---|
| 76 | * @return |
|---|
| 77 | * possible object is |
|---|
| 78 | * {@link CTBlip } |
|---|
| 79 | * |
|---|
| 80 | */ |
|---|
| 81 | public CTBlip getBlip() { |
|---|
| 82 | return blip; |
|---|
| 83 | } |
|---|
| 84 | |
|---|
| 85 | /** |
|---|
| 86 | * Sets the value of the blip property. |
|---|
| 87 | * |
|---|
| 88 | * @param value |
|---|
| 89 | * allowed object is |
|---|
| 90 | * {@link CTBlip } |
|---|
| 91 | * |
|---|
| 92 | */ |
|---|
| 93 | public void setBlip(CTBlip value) { |
|---|
| 94 | this.blip = value; |
|---|
| 95 | } |
|---|
| 96 | |
|---|
| 97 | /** |
|---|
| 98 | * Gets the value of the srcRect property. |
|---|
| 99 | * |
|---|
| 100 | * @return |
|---|
| 101 | * possible object is |
|---|
| 102 | * {@link CTRelativeRect } |
|---|
| 103 | * |
|---|
| 104 | */ |
|---|
| 105 | public CTRelativeRect getSrcRect() { |
|---|
| 106 | return srcRect; |
|---|
| 107 | } |
|---|
| 108 | |
|---|
| 109 | /** |
|---|
| 110 | * Sets the value of the srcRect property. |
|---|
| 111 | * |
|---|
| 112 | * @param value |
|---|
| 113 | * allowed object is |
|---|
| 114 | * {@link CTRelativeRect } |
|---|
| 115 | * |
|---|
| 116 | */ |
|---|
| 117 | public void setSrcRect(CTRelativeRect value) { |
|---|
| 118 | this.srcRect = value; |
|---|
| 119 | } |
|---|
| 120 | |
|---|
| 121 | /** |
|---|
| 122 | * Gets the value of the tile property. |
|---|
| 123 | * |
|---|
| 124 | * @return |
|---|
| 125 | * possible object is |
|---|
| 126 | * {@link CTTileInfoProperties } |
|---|
| 127 | * |
|---|
| 128 | */ |
|---|
| 129 | public CTTileInfoProperties getTile() { |
|---|
| 130 | return tile; |
|---|
| 131 | } |
|---|
| 132 | |
|---|
| 133 | /** |
|---|
| 134 | * Sets the value of the tile property. |
|---|
| 135 | * |
|---|
| 136 | * @param value |
|---|
| 137 | * allowed object is |
|---|
| 138 | * {@link CTTileInfoProperties } |
|---|
| 139 | * |
|---|
| 140 | */ |
|---|
| 141 | public void setTile(CTTileInfoProperties value) { |
|---|
| 142 | this.tile = value; |
|---|
| 143 | } |
|---|
| 144 | |
|---|
| 145 | /** |
|---|
| 146 | * Gets the value of the stretch property. |
|---|
| 147 | * |
|---|
| 148 | * @return |
|---|
| 149 | * possible object is |
|---|
| 150 | * {@link CTStretchInfoProperties } |
|---|
| 151 | * |
|---|
| 152 | */ |
|---|
| 153 | public CTStretchInfoProperties getStretch() { |
|---|
| 154 | return stretch; |
|---|
| 155 | } |
|---|
| 156 | |
|---|
| 157 | /** |
|---|
| 158 | * Sets the value of the stretch property. |
|---|
| 159 | * |
|---|
| 160 | * @param value |
|---|
| 161 | * allowed object is |
|---|
| 162 | * {@link CTStretchInfoProperties } |
|---|
| 163 | * |
|---|
| 164 | */ |
|---|
| 165 | public void setStretch(CTStretchInfoProperties value) { |
|---|
| 166 | this.stretch = value; |
|---|
| 167 | } |
|---|
| 168 | |
|---|
| 169 | /** |
|---|
| 170 | * Gets the value of the dpi property. |
|---|
| 171 | * |
|---|
| 172 | * @return |
|---|
| 173 | * possible object is |
|---|
| 174 | * {@link Long } |
|---|
| 175 | * |
|---|
| 176 | */ |
|---|
| 177 | public Long getDpi() { |
|---|
| 178 | return dpi; |
|---|
| 179 | } |
|---|
| 180 | |
|---|
| 181 | /** |
|---|
| 182 | * Sets the value of the dpi property. |
|---|
| 183 | * |
|---|
| 184 | * @param value |
|---|
| 185 | * allowed object is |
|---|
| 186 | * {@link Long } |
|---|
| 187 | * |
|---|
| 188 | */ |
|---|
| 189 | public void setDpi(Long value) { |
|---|
| 190 | this.dpi = value; |
|---|
| 191 | } |
|---|
| 192 | |
|---|
| 193 | /** |
|---|
| 194 | * Gets the value of the rotWithShape property. |
|---|
| 195 | * |
|---|
| 196 | * @return |
|---|
| 197 | * possible object is |
|---|
| 198 | * {@link Boolean } |
|---|
| 199 | * |
|---|
| 200 | */ |
|---|
| 201 | public Boolean isRotWithShape() { |
|---|
| 202 | return rotWithShape; |
|---|
| 203 | } |
|---|
| 204 | |
|---|
| 205 | /** |
|---|
| 206 | * Sets the value of the rotWithShape property. |
|---|
| 207 | * |
|---|
| 208 | * @param value |
|---|
| 209 | * allowed object is |
|---|
| 210 | * {@link Boolean } |
|---|
| 211 | * |
|---|
| 212 | */ |
|---|
| 213 | public void setRotWithShape(Boolean value) { |
|---|
| 214 | this.rotWithShape = value; |
|---|
| 215 | } |
|---|
| 216 | |
|---|
| 217 | } |
|---|