- From: "Yoann Pigné" <yoann.pigne AT gmail.com>
- To: users AT graphstream-project.org, johannesspreemann AT outlook.com
- Subject: Fwd: Graphstream - Displaying graph on AWT / SWT
- Date: Wed, 21 Aug 2013 13:05:00 +0200
Dear Johannes,
Allow me to forward your question to the GraphStream Mailing List.
What version of gs-core do you use (1.0, 1.1, 1.2) ? There used to be
flickering problems with older versions. It should be OK with v1.2 now.
Are you using the advanced GUI (gs-ui) ?
How do you retrieve the view from GraphStream ? It should be something
like :
Viewer viewer = new Viewer(graph,
Viewer.ThreadingModel.GRAPH_IN_ANOTHER_THREAD);
View view = viewer.addDefaultView(false); // false indicates "no
JFrame".
myJFrame.add(view);
Let us know.
Best regards,
Yoann
Forwarded message:
From: Johannes Spreemann
<johannesspreemann AT outlook.com>
To: yoann.pigne AT graphstream-project.org
<yoann.pigne AT graphstream-project.org>
Subject: Graphstream - Displaying graph on AWT / SWT
Date: Wed, 21 Aug 2013 10:05:28 +0200
Dear Yoann,
I'm actual developing a Eclipse 4 RCP application that uses basically
SWT components. Your Graphstream library works very well, but I have
one issue. I try to integrate the graph output in a SWT composite as
follows:
awtFrame = AWT_SWT.new_Frame(composite);
...awtFrame.add(graphStreamView);awtFrame.setVisible(true);
The graph is displayed in the frame, but it keeps spinning around and
the image is flickering because the AWT frame misses Double Buffering.
Does your team have any suggestions or ideas to solve this problem?
Kind regards
Johannes
- Fwd: Graphstream - Displaying graph on AWT / SWT, Yoann Pigné, 21/08/2013
Archives gérées par MHonArc 2.6.16.