Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » interesting zoomLevel arithmetic
interesting zoomLevel arithmetic [message #179474] Wed, 27 April 2005 17:25 Go to next message
Eclipse UserFriend
Originally posted by: christian.sell.netcologne.de

Hello,

I just discovered that changing the zoom level on an empty diagram
yields strange results. I switched zoom levels in the following order:

page - width - height - page

and saw the following percentages displayed in the combo box field:

62500% - 53375000% - 33359375000% - 20849609375000%

and at infinitum. According to my investigations, the reason lies in the
method

ZoomManager.getFitXZoomLevel(int which),

which does not take into account that
FreeformFigure.getFreeformExtent().union(0, 0) is always (1, 1).

I suppose this should be a bug report, right?

christian
Re: interesting zoomLevel arithmetic [message #179911 is a reply to message #179474] Mon, 02 May 2005 06:52 Go to previous message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Yes, please open a bug report.

"Christian Sell" <christian.sell@netcologne.de> wrote in message
news:d4oi5b$jig$1@news.eclipse.org...
> Hello,
>
> I just discovered that changing the zoom level on an empty diagram
> yields strange results. I switched zoom levels in the following order:
>
> page - width - height - page
>
> and saw the following percentages displayed in the combo box field:
>
> 62500% - 53375000% - 33359375000% - 20849609375000%
>
> and at infinitum. According to my investigations, the reason lies in the
> method
>
> ZoomManager.getFitXZoomLevel(int which),
>
> which does not take into account that
> FreeformFigure.getFreeformExtent().union(0, 0) is always (1, 1).
>
> I suppose this should be a bug report, right?
>
> christian
Previous Topic:Common command framework - is GEF moving this way?
Next Topic:multiple outline pages with MultiPageEditorPart
Goto Forum:
  


Current Time: Thu Apr 25 23:07:49 GMT 2024

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

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

Back to the top