RoundedRectangle rendering problem [message #215699] |
Tue, 09 May 2006 07:42 |
Eclipse User |
|
|
|
Originally posted by: emailforthemasses.gmail.com
Hi all,
I have a problem with the RoundedRectangle shape. I somehow have the
impression that the rendering of this figure is not correct. Especially when
setting the line width to sth bigger than 1, say 2, and when zooming, the
border no longer fits the background. The result is shown in the attachment.
The code I used is the following (in some EditPart of mine):
protected IFigure createFigure() {
RoundedRectangle f = new RoundedRectangle();
f.setBackgroundColor(ColorConstants.red);
f.setCornerDimensions(new Dimension(40,40));
f.setLineWidth(2);
return f;
}
Has anyone had this problem and knows a workaround? Is it a bug or was it
done intentionally? If it's a bug, has it been reported?
Best regards,
Harald
|
|
|
Re: RoundedRectangle rendering problem [message #216108 is a reply to message #215699] |
Mon, 15 May 2006 09:24 |
Eclipse User |
|
|
|
Originally posted by: emailforthemasses.gmail.com
Does anybody have a finding for this issue or an idea how I could easily and
in a portable manner fix this problem?
Best regards,
Harald
"Harald Schubert" <emailforthemasses@gmail.com> wrote in message
news:e3ph56$f05$1@utils.eclipse.org...
> Hi all,
>
> I have a problem with the RoundedRectangle shape. I somehow have the
> impression that the rendering of this figure is not correct. Especially
> when setting the line width to sth bigger than 1, say 2, and when zooming,
> the border no longer fits the background. The result is shown in the
> attachment.
>
> The code I used is the following (in some EditPart of mine):
>
> protected IFigure createFigure() {
> RoundedRectangle f = new RoundedRectangle();
> f.setBackgroundColor(ColorConstants.red);
> f.setCornerDimensions(new Dimension(40,40));
> f.setLineWidth(2);
> return f;
> }
>
> Has anyone had this problem and knows a workaround? Is it a bug or was it
> done intentionally? If it's a bug, has it been reported?
>
> Best regards,
> Harald
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03634 seconds