Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » about :CreateRequest's location
about :CreateRequest's location [message #106488] Mon, 24 November 2003 06:18
Eclipse UserFriend
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
Previous Topic:about CreateRequest
Next Topic:Right-click on background to deselect editparts?
Goto Forum:
  


Current Time: Thu Nov 21 13:18:28 GMT 2024

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

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

Back to the top