[piccolo2d-dev] Re: Issue 213 in piccolo2d: artifacts in JComponent border using PSwing
Updates: Labels: Milestone-1.4 Comment #8 on issue 213 by heue...@gmail.com: artifacts in JComponent border using PSwing http://code.google.com/p/piccolo2d/issues/detail?id=213 (No comment was entered for this change.) -- You received this message because this project is configured to send all issue notifications to this address. You may adjust your notification preferences at: https://code.google.com/hosting/settings -- -- Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en --- You received this message because you are subscribed to the Google Groups "Piccolo2D Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to piccolo2d-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[piccolo2d-dev] Re: Issue 213 in piccolo2d: artifacts in JComponent border using PSwing
Updates: Labels: Type-Defect Comment #5 on issue 213 by heue...@gmail.com: artifacts in JComponent border using PSwing http://code.google.com/p/piccolo2d/issues/detail?id=213 (No comment was entered for this change.) -- Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
[piccolo2d-dev] Re: Issue 213 in piccolo2d: artifacts in JComponent border using PSwing
Comment #4 on issue 213 by cmal...@pixelzoom.com: artifacts in JComponent border using PSwing http://code.google.com/p/piccolo2d/issues/detail?id=213 Ah, good point about rounded rectangles. I agree, leave open for now. -- Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
[piccolo2d-dev] Re: Issue 213 in piccolo2d: artifacts in JComponent border using PSwing
Updates: Status: Accepted Comment #3 on issue 213 by atdi...@gmail.com: artifacts in JComponent border using PSwing http://code.google.com/p/piccolo2d/issues/detail?id=213 LineBorder supports rounded rectangles, not sure if MatteBorder does. Let's leave this open for now b/c it seems like such a common thing to want to do. -- Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
[piccolo2d-dev] Re: Issue 213 in piccolo2d: artifacts in JComponent border using PSwing
Updates: Status: WontFix Comment #2 on issue 213 by cmal...@pixelzoom.com: artifacts in JComponent border using PSwing http://code.google.com/p/piccolo2d/issues/detail?id=213 Thanks for investigating atdixon! That's an incredibly lame implementation of LineBorder. And I suppose that the Win & Linux implementations are identical. Using a MatteBorder seems like a fine workaround. So I don't think Piccolo should spend any further time on this. I'm going to close this as "Won't Fix". If anyone disagrees with this feel free to reopen. -- Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
[piccolo2d-dev] Re: Issue 213 in piccolo2d: artifacts in JComponent border using PSwing
Comment #1 on issue 213 by atdi...@gmail.com: artifacts in JComponent border using PSwing http://code.google.com/p/piccolo2d/issues/detail?id=213 Interesting, MatteBorder doesn't do this. In you code, replace LineBorder with: setBorder(BorderFactory.createMatteBorder(10,10,10,10,Color.blue)); LineBorder's implementation (the jdk source code that comes w/ MacOS) of paintBorder() looks like this: for(i = 0; i < thickness; i++) { g.drawRect(x + i, y + i, width - i - i - 1, height - i - i - 1); } It just draws a consecutive of rectangles. I think when the Graphics object is scaled this approach is leaving whitespace between the consecutive lines. MatteBorder's implementation uses fillRects instead of consecutive of single-pixel-width rectangles. Not sure what Piccolo2D can do about this. I suppose we could detect the use of LineBorder and recover from their implementation (ie., reimplement the painting of LineBorders ourself to do something like what Matte does.) -- Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en