Code: Select all
Rectangle2D.Double rect = new Rectangle2D.Double(this.getxCoord(), this.yCoord, this.getWidth(), this.height);
anot = new XYShapeAnnotation(
rect, stroke, this.color, Color.DARK_GRAY);
Thanks in advance!