Community
Participate
Working Groups
Ellipse#outlineShape() performs some optimizations w.r.t. to eliminating line width effects. This optimization is not performed within fillShape, so that the background may get painted larger than the outlin (see attached screenshot). Ellipse#fillShape() should contain the same optimizations: protected void fillShape(Graphics graphics) { float lineInset = Math.max(1.0f, getLineWidthFloat()) / 2.0f; int inset1 = (int) Math.floor(lineInset); int inset2 = (int) Math.ceil(lineInset); Rectangle r = Rectangle.SINGLETON.setBounds(getBounds()); r.x += inset1; r.y += inset1; r.width -= inset1 + inset2; r.height -= inset1 + inset2; graphics.fillOval(r); }
Fixed. Committed changes to cvs HEAD as well as R_3_7_maintenance branch.