Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » RoundedRectangle rendering problem
RoundedRectangle rendering problem [message #215699] Tue, 09 May 2006 07:42 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:REDO/UNDO in the model properties
Next Topic:Show Root Model Element In A Content Outline View
Goto Forum:
  


Current Time: Fri Apr 26 18:13:48 GMT 2024

Powered by FUDForum. Page generated in 0.03192 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top