Coordinates Problem [message #206734] |
Fri, 06 January 2006 09:44 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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: Coordinates Problem [message #209232 is a reply to message #206765] |
Mon, 13 February 2006 11:33 |
Eclipse User |
|
|
|
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!
|
|
|
Powered by
FUDForum. Page generated in 0.03958 seconds