1 28 package net.sf.jasperreports.engine.base; 29 30 import net.sf.jasperreports.engine.JRConstants; 31 import net.sf.jasperreports.engine.JRDefaultStyleProvider; 32 import net.sf.jasperreports.engine.JRLine; 33 import net.sf.jasperreports.engine.JRPrintLine; 34 35 36 40 public class JRBasePrintLine extends JRBasePrintGraphicElement implements JRPrintLine 41 { 42 43 44 47 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 48 49 52 protected byte direction = JRLine.DIRECTION_TOP_DOWN; 53 54 55 58 public JRBasePrintLine(JRDefaultStyleProvider defaultStyleProvider) 59 { 60 super(defaultStyleProvider); 61 } 62 63 64 67 public void setWidth(int width) 68 { 69 if (width == 0) 70 { 71 width = 1; 72 } 73 74 super.setWidth(width); 75 } 76 77 80 public void setHeight(int height) 81 { 82 if (height == 0) 83 { 84 height = 1; 85 } 86 87 super.setHeight(height); 88 } 89 90 93 public byte getDirection() 94 { 95 return this.direction; 96 } 97 98 101 public void setDirection(byte direction) 102 { 103 this.direction = direction; 104 } 105 106 107 } 108 | Popular Tags |