Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Coordinates Problem
Coordinates Problem [message #206734] Fri, 06 January 2006 09:44 Go to next message
Eclipse UserFriend
Originally posted by: Vincent.Black.evhr.net

Hello, I have an editor with basic rectangles shapes. But I have a
problem,
the coordinates are false when we draw outside the initial screen. For
exemple, if my graphic take two screens in horizontal, and I place a
rectangle
in the second screen, the editor draw it on the first. It's a coordinates
problem but i dont find where to correct it. Anyone have some ideas or
ways ?

Thank you very much !

Sincerely,
Vinz
Re: Coordinates Problem [message #206751 is a reply to message #206734] Fri, 06 January 2006 10:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Vincent.Black.evhr.net

Any ideas? I have based my application on ShapesEditor Exemple and the
exemple works fine. But i dont see what is different and is responsable of
the coordinates problem.
Re: Coordinates Problem [message #206765 is a reply to message #206751] Fri, 06 January 2006 16:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Vincent.Black.evhr.net

In fact it was a just a simple problem. When a figure is created, i have
used "request.getLocation()", but the good method is
"(Rectangle)getConstraintFor(request)" to have the reel coordinate in the
graph editor. The method "request.getLocation()" send coordinates of the
screen editor, and "(Rectangle)getConstraintFor(request)" send coordinates
in
graph.

This is used in createCommand. I hope that it can help someone.

Vinz
Re: - RESOLVED - [message #206773 is a reply to message #206765] Fri, 06 January 2006 16:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Vincent.Black.evhr.net

- RESOLVED -
Re: Coordinates Problem [message #209232 is a reply to message #206765] Mon, 13 February 2006 11:33 Go to previous message
Eclipse UserFriend
Originally posted by: adam.giemza.gmx.de

> "(Rectangle)getConstraintFor(request)"

Thanks, this one helped me out with the problem creating new nodes in
zoomed mode!
Previous Topic:Singleton EditPart
Next Topic:How can I develop WYSIWYG GUI Widgets ?
Goto Forum:
  


Current Time: Sat May 11 00:54:26 GMT 2024

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

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

Back to the top