|
|
|
Re: MoveContext [message #904469 is a reply to message #904330] |
Tue, 28 August 2012 13:30 |
Rui Domingues Messages: 194 Registered: October 2010 |
Senior Member |
|
|
For those who are interested. I solved my problem using only absolute location.
In move context I get global mouse position instead of getX and getY ( which is the left corner of the shape), as below:
DiagramEditor de = (DiagramEditor)getDiagramEditor();
Point location = de.getMouseLocation();
And I do my calculations converting the position of shapes I'm interested to the absolute system:
GraphitiUi.getUiLayoutService().getLocationRelativeToDiagram((Shape)iGroupGA.getPictogramElement());
Thanks .
[Updated on: Tue, 28 August 2012 13:31] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.01971 seconds