1 28 package net.sf.jasperreports.engine.design; 29 30 import java.io.IOException ; 31 32 import net.sf.jasperreports.engine.JRAbstractObjectFactory; 33 import net.sf.jasperreports.engine.JRBreak; 34 import net.sf.jasperreports.engine.JRChild; 35 import net.sf.jasperreports.engine.JRConstants; 36 import net.sf.jasperreports.engine.JRDefaultStyleProvider; 37 import net.sf.jasperreports.engine.JRExpressionCollector; 38 import net.sf.jasperreports.engine.xml.JRXmlWriter; 39 40 41 46 public class JRDesignBreak extends JRDesignElement implements JRBreak 47 { 48 49 50 53 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 54 55 58 protected byte type = TYPE_PAGE; 59 60 61 64 public JRDesignBreak() 65 { 66 super(null); 67 } 68 69 72 public JRDesignBreak(JRDefaultStyleProvider defaultStyleProvider) 73 { 74 super(defaultStyleProvider); 75 } 76 77 78 81 public int getX() 82 { 83 return 0; 84 } 85 86 89 public int getHeight() 90 { 91 return 1; 92 } 93 94 97 public byte getType() 98 { 99 return type; 100 } 101 102 105 public void setType(byte type) 106 { 107 this.type = type; 108 } 109 110 113 public JRChild getCopy(JRAbstractObjectFactory factory) 114 { 115 return factory.getBreak(this); 116 } 117 118 121 public void collectExpressions(JRExpressionCollector collector) 122 { 123 collector.collect(this); 124 } 125 126 129 public void writeXml(JRXmlWriter xmlWriter) throws IOException 130 { 131 xmlWriter.writeBreak(this); 132 } 133 134 135 } 136 | Popular Tags |