The NamedFigureLocator goes to the center of a Figure, but
- Code: Select all
XYLocator(newNamedFigureLocator(givenFigureId))
goes to the top left corner of the Figure.
- Code: Select all
NamedFigureLocator locator = new NamedFigureLocator(givenFigureId);
ILocator clickLocation = new XYLocator(locator, xOffset, yOffset);
ui.click(clickLocation);
Is there a way to compute xOffset, i.e. get the Width of the named Figure in a GEF Diagram?
Getting the X and Y coordinates of a named Figure would suffice; I could then compute the width.