1 28 package net.sf.jasperreports.engine.design; 29 30 import net.sf.jasperreports.engine.JRConstants; 31 import net.sf.jasperreports.engine.JRDefaultStyleProvider; 32 import net.sf.jasperreports.engine.JRElement; 33 import net.sf.jasperreports.engine.JRElementGroup; 34 import net.sf.jasperreports.engine.JRExpression; 35 import net.sf.jasperreports.engine.JRGroup; 36 import net.sf.jasperreports.engine.JRStyle; 37 import net.sf.jasperreports.engine.base.JRBaseElement; 38 39 40 47 public abstract class JRDesignElement extends JRBaseElement 48 { 49 50 51 54 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 55 56 57 60 protected JRDesignElement(JRDefaultStyleProvider defaultStyleProvider) 61 { 62 super(defaultStyleProvider); 63 64 positionType = JRElement.POSITION_TYPE_FIX_RELATIVE_TO_TOP; 65 } 66 67 68 71 public void setKey(String key) 72 { 73 this.key = key; 74 } 75 76 79 public void setY(int y) 80 { 81 this.y = y; 82 } 83 84 87 public void setHeight(int height) 88 { 89 this.height = height; 90 } 91 92 96 public void setPrintWhenExpression(JRExpression expression) 97 { 98 this.printWhenExpression = expression; 99 } 100 101 105 public void setPrintWhenGroupChanges(JRGroup group) 106 { 107 this.printWhenGroupChanges = group; 108 } 109 110 115 public void setElementGroup(JRElementGroup elementGroup) 116 { 117 this.elementGroup = elementGroup; 118 } 119 120 public void setStyle(JRStyle style) 121 { 122 this.parentStyle = style; 123 } 124 } 125 | Popular Tags |