GraphStream Users

Archives de la liste Aide


Re: gs-core 1.3-Snapshot recently changes (View, Viewer)


Chronologique Discussions 
  • From: Stefan Balev <stefan.balev AT gmail.com>
  • To: "graphstream-users AT litislab.fr" <graphstream-users AT litislab.fr>, klaus.pichler AT stud.unileoben.ac.at
  • Subject: Re: gs-core 1.3-Snapshot recently changes (View, Viewer)
  • Date: Fri, 26 Sep 2014 12:38:55 +0200

Hi Klaus,

Don't worry, View and Viewer are still there but there was some refactoring and they changed their place. To make your code compile again you have to change your imports:

import org.graphstream.ui.view.View;
import org.graphstream.ui.view.Viewer;

Sorry for the inconvenience,

--
Stefan


2014-09-26 11:43 GMT+02:00 <klaus.pichler AT stud.unileoben.ac.at>:
Hallo,

I have a java maven project running with the dependency:
<dependency>
    <groupId>org.graphstream</groupId>
    <artifactId>gs-core</artifactId>
    <version>1.3-Snapshot</version>
</dependency>

My Code for the Visualisation looks like this:
Viewer viewer = new Viewer(myGraph,
                                Viewer.ThreadingModel.GRAPH_IN_ANOTHER_THREAD);
View view = viewer.addDefaultView(false);
myPanel.add(view,BorderLayout.CENTER);

I showed my graph in a own Frame... (also added same mouselistener to the view,
and used view.getCamera().setViewCenter(..) to move around the graph, but that
isn't important here)
My Application works long time fine, till the latest update of the artefact
gs-core 1.3-Snapshot. It seems like, that the classes View and Viewer didnt
exist any more (or they are just renamed or something...) Code doesnt compile
anymore.
Is there any chance, to get this Code running again? (I still want to use the
latest maven artefacts)

Best regards,
Klaus




Archives gérées par MHonArc 2.6.16.

Top of page