The screenShot method from the GraphViewerRemote interface makes screenshots, but the size is wrong and the whole graph is there allright but not in the right place, there is a shift in both the x and y axis.
Please find the source code and the SVG pictures attached.
- screenshot.svg is the screenshot made by right-clicking ont the display window, that turns out to be correct
- capturegraph.svg is the file created by the screenShot method.
Thanks for the help.
Source code used and screenshots it makes
adding
try{ Thread.sleep( 100 ); } catch( Exception e ) { }
before calling the method could be a solution since the rendering is not over when the screenshot is taken