GraphStream Users

Archives de la liste Aide


Re: component appear on the graph


Chronologique Discussions 
  • From: Antoine Dutot <antoine.dutot AT gmail.com>
  • To: graphstream-users AT litislab.fr, guilhelm savin <guilhelm.savin AT gmail.com>
  • Cc: István Fodor <szvepi AT gmail.com>
  • Subject: Re: component appear on the graph
  • Date: Fri, 11 May 2012 13:56:04 +0200

This is a problem that already appeared when using the viewer in a Swing GUI, however with no fix yet, in part because it is difficult to reproduce.

You can may be (if this is not yet the case) try the nightly builds of GraphStream (http://graphstream-project.org/pub/1.x/nightly-build/). The way the view is drawn was changed, notably concerning the way the Graphics2D transformations are used. The bug can be tied to it. We will try to investigate this.

Antoine

2012/5/11 guilhelm savin <guilhelm.savin AT gmail.com>
Hi,

Can you tell me the version of GraphStream and Java
you are using and your OS please ?

Regards.

2012/5/11 István Fodor <szvepi AT gmail.com>
Hi Guilhelm,

The button again appear in the graph.
Here is the example code: 

                JFrame frame = new JFrame();
JPanel panel = new JPanel(new GridLayout());
Graph graph = new SingleGraph("Tutorial 1");
JButton button = new JButton("Click");
panel.add(button);
frame.add(panel);
graph.addNode("A" );
graph.addNode("B" );
graph.addNode("C" );
graph.addEdge("AB", "A", "B");
graph.addEdge("BC", "B", "C");
graph.addEdge("CA", "C", "A");
frame.setVisible(true);
frame.setBounds(800, 0, 200, 200);
graph.display();

Thanks.


2012/5/11 guilhelm savin <guilhelm.savin AT gmail.com>
Hi István,

Can you send to us some minimal code that reproduce the error ?
It should help us to give you an answer.

Regards.

2012/5/10 István Fodor <szvepi AT gmail.com>
Hi,

I use GraphStream in my program, but I have a problem. When I move the mouse towards a JButton or other swing component, then this component appear on the graph. I attaeched picture with the error. 
Do you have any idea for this problem?

Thanks in advance.



--
Guilhelm Savin
PhD Student of Computer Science





--
Guilhelm Savin
PhD Student of Computer Science





Archives gérées par MHonArc 2.6.16.

Top of page