GraphStream Users

Archives de la liste Aide


Re: graphstream in javafx


Chronologique Discussions 
  • From: Yoann Pigné <yoann.pigne AT gmail.com>
  • To: graphstream-users AT litislab.fr, Reynaldo Gil <gilcu2 AT gmail.com>
  • Subject: Re: graphstream in javafx
  • Date: Wed, 1 Apr 2015 13:06:58 +0200

Hi,

> On Mar 31, 2015, at 10:35 PM, Reynaldo Gil
> <gilcu2 AT gmail.com>
> wrote:
>
> Hi, I want to show a gs viewer in javafx, I did the example in
> http://sympa.litislab.fr/sympa/arc/graphstream-users/2013-10/msg00006.html
> but the window dont show any graph.
> This is my program:
>
> object GSInFX extends JFXApp {
>
> stage = new PrimaryStage {
> title = "GraphStream inside ScalaFX"
> scene = new Scene {
> content = new SwingNode {
>
> val graph = new SingleGraph("Tutorial 1")
>
> graph.addNode("A")
> graph.addNode("B")
> graph.addNode("C")
> graph.addEdge("AB", "A", "B")
> graph.addEdge("BC", "B", "C")
> graph.addEdge("CA", "C", "A")
> val viewer = new Viewer(graph, Viewer.ThreadingModel.
> GRAPH_IN_SWING_THREAD)
> val view = viewer.addDefaultView(false)
> viewer.enableAutoLayout()
> viewer.setCloseFramePolicy(Viewer.CloseFramePolicy.EXIT)
> content = view
> }
>
> }
> }
> }
> Some idea?

Sorry, GraphStream still does not support JavaFX.


> Also I found the project gx-fx in https://github.com/trajar/gs-fx but it
> doesnt explain how to use it. Some documentation?

You might want to contact the author himself. Anyway there is a demo class in
the project that looks pretty straightforward:

https://github.com/trajar/gs-fx/blob/master/src/test/java/org/graphstream/ui/javafx/ViewCanvasDemo.java


> Thanks
> Reynaldo


Regards,
Yoann

  • Re: graphstream in javafx, Yoann Pigné, 01/04/2015

Archives gérées par MHonArc 2.6.16.

Top of page