Problem when using ZoomIn [message #188053] |
Mon, 18 July 2005 21:59 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 #188085 is a reply to message #188069] |
Mon, 18 July 2005 22:51 |
Eclipse User |
|
|
|
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?
>
|
|
|
Powered by
FUDForum. Page generated in 0.04314 seconds