about :CreateRequest's location [message #106488] |
Mon, 24 November 2003 06:18 |
Eclipse User |
|
|
|
Originally posted by: tranfy.hotmail.com
In my xyLayoutEditPolicy ,there is a createRequest named request.
Point where = request.getLocation().getCopy();
I wonder the coordinate of the where is absolute or relative ? And if it
is relative ,how can I convert it to absolute?
At the same time, I want to get the child figure's absolute coordinate,I
write the following code . Is it correct and how can I judge the point of
where is located in the following figure ?
IFigure figure = ((GraphicalEditPart)child).getFigure();
Rectangle rectangle = figure.getBounds().getCopy();
figure.translateToAbsolute(rectangle);
Thanks a lot
|
|
|
Powered by
FUDForum. Page generated in 0.03209 seconds