Skip to main content



      Home
Home » Eclipse Projects » GEF » zoom and connection-width
zoom and connection-width [message #231375] Wed, 07 March 2007 09:17 Go to next message
Eclipse UserFriend
Hello,

in my GEF diagrams polyline-connections seem not to be scaled correctly.
If I change the line-width of a connection (a polyline) to a wider value
(e.g. 6 pixels) and zoom-in (or zoom-out), the line-width always sticks
to the same number (6 pixel).

Taking a closer look at the logic-example I discovered, that 1 pixel
connections are not scaled either.

Does anybody know a solution for this? Should i open a bug?

Kind regards,

Andreas
Re: zoom and connection-width [message #231450 is a reply to message #231375] Thu, 08 March 2007 23:29 Go to previous messageGo to next message
Eclipse UserFriend
Hi Andreas,

This is expected default behaviour. You will need to listen to zoom changes
and adjust the line thickness automatically to get the effect you are
looking for.

Cheers...
Anthony

"A. Schosser" <andreas.schosser@mind8.com> wrote in message
news:esmhht$27j$1@utils.eclipse.org...
> Hello,
>
> in my GEF diagrams polyline-connections seem not to be scaled correctly.
> If I change the line-width of a connection (a polyline) to a wider value
> (e.g. 6 pixels) and zoom-in (or zoom-out), the line-width always sticks to
> the same number (6 pixel).
>
> Taking a closer look at the logic-example I discovered, that 1 pixel
> connections are not scaled either.
>
> Does anybody know a solution for this? Should i open a bug?
>
> Kind regards,
>
> Andreas
Re: zoom and connection-width [message #231512 is a reply to message #231450] Fri, 09 March 2007 08:28 Go to previous message
Eclipse UserFriend
Hi Anthony,

thanks for your advice. My connection edit-parts do listen to the
ScalableRootEditPart's ZoomManager now and scaling looks pretty good
when zooming iniside the editor part.
But unfortunately, the ScrollableThumbnail placed inside my overview
ContentOutlinePage is unable to handle the scaled connections. The
thumbnail-connections now show the same line-width as connections shown
inside the editor view.
I tried to change the ContentOutlinePage implementation, but finally got
stuck againg. Both in the editor-part and the ContentOutlinePage I am
using the same GraphicalViewer (for synchronisation).
Thanks,

Andreas

Anthony Hunter wrote:
> Hi Andreas,
>
> This is expected default behaviour. You will need to listen to zoom changes
> and adjust the line thickness automatically to get the effect you are
> looking for.
>
> Cheers...
> Anthony
>
> "A. Schosser" <andreas.schosser@mind8.com> wrote in message
> news:esmhht$27j$1@utils.eclipse.org...
>> Hello,
>>
>> in my GEF diagrams polyline-connections seem not to be scaled correctly.
>> If I change the line-width of a connection (a polyline) to a wider value
>> (e.g. 6 pixels) and zoom-in (or zoom-out), the line-width always sticks to
>> the same number (6 pixel).
>>
>> Taking a closer look at the logic-example I discovered, that 1 pixel
>> connections are not scaled either.
>>
>> Does anybody know a solution for this? Should i open a bug?
>>
>> Kind regards,
>>
>> Andreas
>
>
Previous Topic:recursive call of fillShape methode
Next Topic:Layout question
Goto Forum:
  


Current Time: Wed Jul 23 11:03:07 EDT 2025

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

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

Back to the top