Location problem when creating items with zoom level != 100% [message #152039] |
Sun, 26 September 2004 14:25 |
Eclipse User |
|
|
|
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 #152094 is a reply to message #152039] |
Mon, 27 September 2004 14:22 |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.03554 seconds