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.JRPrintRectangle; 33 import net.sf.jasperreports.engine.util.JRStyleResolver; 34 35 36 40 public class JRBasePrintRectangle extends JRBasePrintGraphicElement implements JRPrintRectangle 41 { 42 43 46 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 47 48 51 protected Integer radius = null; 52 53 54 57 public JRBasePrintRectangle(JRDefaultStyleProvider defaultStyleProvider) 58 { 59 super(defaultStyleProvider); 60 } 61 62 63 66 public int getRadius() 67 { 68 return JRStyleResolver.getRadius(this); 69 } 70 71 74 public Integer getOwnRadius() 75 { 76 return radius; 77 } 78 79 82 public void setRadius(int radius) 83 { 84 this.radius = new Integer (radius); 85 } 86 87 90 public void setRadius(Integer radius) 91 { 92 this.radius = radius; 93 } 94 95 96 } 97 | Popular Tags |