Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » PolylineConnection width does not zoom/scale
PolylineConnection width does not zoom/scale [message #215526] Thu, 04 May 2006 17:49 Go to next message
Eclipse UserFriend
Originally posted by: ben.vitale.precipia.com

I noticed in my own editor (as well as the Logic editor) that when
zooming in, the width of PolylineConnections do not increase. Node
size, of course, increases.

How can I enable this for line width?

Thanks
Ben
Re: PolylineConnection width does not zoom/scale [message #215585 is a reply to message #215526] Thu, 04 May 2006 20:15 Go to previous message
Steven R. Shaw is currently offline Steven R. ShawFriend
Messages: 128
Registered: July 2009
Senior Member
Looks like you have to subclass ScaledGraphics and override getLineWidth to
return

public int getLineWidth() {
return graphics.getLineWidth();
}

You would then subclass ScalableFreeformLayeredPane#paintClientArea to use
your ScaledGraphics subclass.

This was done by design so that line can still be edited easily depending on
the zoom mode.

-Steve

"Ben Vitale" <ben.vitale@precipia.com> wrote in message
news:e3deqm$m4t$1@utils.eclipse.org...
> I noticed in my own editor (as well as the Logic editor) that when
> zooming in, the width of PolylineConnections do not increase. Node
> size, of course, increases.
>
> How can I enable this for line width?
>
> Thanks
> Ben
Previous Topic:Draw2d very large figures
Next Topic:Connection line visible at PolygonDecoration arrow point
Goto Forum:
  


Current Time: Wed Dec 07 00:23:06 GMT 2022

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

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

Back to the top