1 28 package net.sf.jasperreports.engine.fill; 29 30 import java.awt.Color ; 31 import java.io.Serializable ; 32 33 import net.sf.jasperreports.engine.JRConstants; 34 import net.sf.jasperreports.engine.JRDefaultStyleProvider; 35 import net.sf.jasperreports.engine.JRPrintElement; 36 import net.sf.jasperreports.engine.JRStyle; 37 38 39 43 public class JRTemplatePrintElement implements JRPrintElement, Serializable 44 { 45 46 47 50 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 51 52 55 protected JRTemplateElement template = null; 56 57 private int x = 0; 58 private int y = 0; 59 private int height = 0; 60 private int width = 0; 61 62 63 66 protected JRTemplatePrintElement(JRTemplateElement element) 67 { 68 template = element; 69 } 70 71 74 public JRDefaultStyleProvider getDefaultStyleProvider() 75 { 76 return template.getDefaultStyleProvider(); 77 } 78 79 82 public JRStyle getStyle() 83 { 84 return template.getStyle(); 85 } 86 87 90 public void setStyle(JRStyle style) 91 { 92 } 93 94 97 public byte getMode() 98 { 99 return this.template.getMode(); 100 } 101 102 105 public Byte getOwnMode() 106 { 107 return this.template.getOwnMode(); 108 } 109 110 113 public void setMode(byte mode) 114 { 115 } 116 117 120 public void setMode(Byte mode) 121 { 122 } 123 124 127 public int getX() 128 { 129 return this.x; 130 } 131 132 135 public void setX(int x) 136 { 137 this.x = x; 138 } 139 140 143 public int getY() 144 { 145 return this.y; 146 } 147 148 151 public void setY(int y) 152 { 153 this.y = y; 154 } 155 156 159 public int getWidth() 160 { 161 return this.width; 162 } 163 164 167 public void setWidth(int width) 168 { 169 this.width = width; 170 } 171 172 175 public int getHeight() 176 { 177 return this.height; 178 } 179 180 183 public void setHeight(int height) 184 { 185 this.height = height; 186 } 187 188 191 public Color getForecolor() 192 { 193 return this.template.getForecolor(); 194 } 195 196 199 public Color getOwnForecolor() 200 { 201 return this.template.getOwnForecolor(); 202 } 203 204 207 public void setForecolor(Color color) 208 { 209 } 210 211 214 public Color getBackcolor() 215 { 216 return this.template.getBackcolor(); 217 } 218 219 222 public Color getOwnBackcolor() 223 { 224 return this.template.getOwnBackcolor(); 225 } 226 227 230 public void setBackcolor(Color color) 231 { 232 } 233 234 235 public JRTemplateElement getTemplate() 236 { 237 return template; 238 } 239 240 public void setTemplate(JRTemplateElement template) 241 { 242 this.template = template; 243 } 244 245 public String getKey() 246 { 247 return template.getKey(); 248 } 249 } 250 | Popular Tags |