1 28 package net.sf.jasperreports.engine.fill; 29 30 import net.sf.jasperreports.engine.JRConstants; 31 import net.sf.jasperreports.engine.JRDefaultStyleProvider; 32 import net.sf.jasperreports.engine.JRLine; 33 34 35 39 public class JRTemplateLine extends JRTemplateGraphicElement 40 { 41 42 43 46 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 47 48 51 private byte direction = JRLine.DIRECTION_TOP_DOWN; 52 53 54 57 protected JRTemplateLine(JRDefaultStyleProvider defaultStyleProvider, JRLine line) 58 { 59 super(defaultStyleProvider); 60 61 setLine(line); 62 } 63 64 65 68 protected void setLine(JRLine line) 69 { 70 super.setGraphicElement(line); 71 72 setDirection(line.getDirection()); 73 } 74 75 78 public byte getDirection() 79 { 80 return this.direction; 81 } 82 83 86 protected void setDirection(byte direction) 87 { 88 this.direction = direction; 89 } 90 91 92 } 93 | Popular Tags |