1 32 33 package it.businesslogic.ireport; 34 35 public class RoundRectangleReportElement extends RectangleReportElement 36 { 37 private static int defaultRadius = 5; 41 42 public RoundRectangleReportElement (int x, int y, int width, int height) 43 { 44 this(x,y,width,height, defaultRadius); 45 } 46 47 public RoundRectangleReportElement (int x, int y, int width, int height, int radius) 48 { 49 super(x,y,width,height); 50 setRadius( radius ); 51 } 52 53 public ReportElement cloneMe () { 54 RoundRectangleReportElement newReportElement = new RoundRectangleReportElement (position.x, position.y, width, height); 55 copyBaseReportElement (newReportElement, this); 56 return newReportElement; 57 } 58 } 59 60 | Popular Tags |