Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Problem when using ZoomIn
Problem when using ZoomIn [message #188053] Mon, 18 July 2005 21:59 Go to next message
Eclipse UserFriend
Originally posted by: cleversons.gmail.com

Hi,

I have placed an action on my editor that when pressed calls the editor's
ZoomManager zoomIn() method. The problem is that when this method is
called, the location of the figure changes. If I call zoomIn 3 or 4 times,
the figure goes out of screen. Each time it is moved down and rightward.
What's wrong?
Thank you

Best Regards
Cleverson Schmidt
Re: Problem when using ZoomIn [message #188061 is a reply to message #188053] Mon, 18 July 2005 22:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.unknown.com

The algorithm zooms into the center of the visible area.

"Cleverson Schmidt" <cleversons@gmail.com> wrote in message
news:37e4fa8199deef9e901a0298130f8227$1@www.eclipse.org...
> Hi,
>
> I have placed an action on my editor that when pressed calls the editor's
> ZoomManager zoomIn() method. The problem is that when this method is
> called, the location of the figure changes. If I call zoomIn 3 or 4 times,
> the figure goes out of screen. Each time it is moved down and rightward.
> What's wrong?
> Thank you
>
> Best Regards
> Cleverson Schmidt
>
Re: Problem when using ZoomIn [message #188069 is a reply to message #188061] Mon, 18 July 2005 22:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: cleversons.gmail.com

Hi Pratik,

Thank you for the prompt answer.
Is there a way to change this behaviour?
Re: Problem when using ZoomIn [message #188085 is a reply to message #188069] Mon, 18 July 2005 22:51 Go to previous message
Eclipse UserFriend
Originally posted by: none.unknown.com

You could override ZoomManager.primSetZoom(). But it would probably be
easier to do your calculation and just invoke ZoomManager.setViewLocation()
from the zoom-in action.

"Cleverson Schmidt" <cleversons@gmail.com> wrote in message
news:4787c61461fdd2bab7e62791708a4b87$1@www.eclipse.org...
> Hi Pratik,
>
> Thank you for the prompt answer.
> Is there a way to change this behaviour?
>
Previous Topic:Problem with custom GridLayer
Next Topic:How to show rectangle with label
Goto Forum:
  


Current Time: Fri Dec 13 02:56:12 GMT 2024

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

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

Back to the top