Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » zoom and connection-width
zoom and connection-width [message #231375] Wed, 07 March 2007 14:17 Go to next message
Andreas Schosser is currently offline Andreas SchosserFriend
Messages: 30
Registered: July 2009
Member
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] Fri, 09 March 2007 04:29 Go to previous messageGo to next message
Anthony Hunter is currently offline Anthony HunterFriend
Messages: 446
Registered: July 2009
Senior Member
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 13:28 Go to previous message
Andreas Schosser is currently offline Andreas SchosserFriend
Messages: 30
Registered: July 2009
Member
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: Fri Mar 29 01:20:55 GMT 2024

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

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

Back to the top