Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Location problem when creating items with zoom level != 100%
Location problem when creating items with zoom level != 100% [message #152039] Sun, 26 September 2004 14:25 Go to next message
Eclipse UserFriend
Originally posted by: usenet.jevopi.de

Hi all,

I've got a problem when using the zoom feature. Everything is working
fine with zoom, except the creation of new objects. When a new object
is beeing created and the zoom level isn't 100%, the location is wrong
calculated.

Since moving, sizing and everyting else is working perfectly, I don't
know what I did wrong. Of course I could "fix" the problem by
calculating the right location in my Policy, Command or elsewhere. But
this seems wrong to me, since zooming is hidden to all these clases in
other cases.

Jens
Re: Location problem when creating items with zoom level != 100% [message #152057 is a reply to message #152039] Sun, 26 September 2004 16:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: usenet.jevopi.de

BTW: The zoom combo box in the toolbar (ZoomComboContributionItem etc)
is not working with Mac OS X. There I see a gray line only, but it's
the same code.

Jens
Re: Location problem when creating items with zoom level != 100% [message #152094 is a reply to message #152039] Mon, 27 September 2004 14:22 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Zoom is hidden, but that fact that figures may impose different coordinates
is not. The request contains absolute coordinates, these must be converted
to local coordinates using Figure.translateToRelative(copyOfPoint/Rect).

This is probably done somewhere already in the policies. Maybe you are
overriding it.

"Jens v. P." <usenet@jevopi.de> wrote in message
news:cj6j8a$4gp$2@eclipse.org...
> Hi all,
>
> I've got a problem when using the zoom feature. Everything is working
> fine with zoom, except the creation of new objects. When a new object
> is beeing created and the zoom level isn't 100%, the location is wrong
> calculated.
>
> Since moving, sizing and everyting else is working perfectly, I don't
> know what I did wrong. Of course I could "fix" the problem by
> calculating the right location in my Policy, Command or elsewhere. But
> this seems wrong to me, since zooming is hidden to all these clases in
> other cases.
>
> Jens
>
Previous Topic:how to create a self connection
Next Topic:problem with non model connections
Goto Forum:
  


Current Time: Thu Apr 25 07:46:48 GMT 2024

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

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

Back to the top