Graphstream with Icons in same order

466 Views Asked by At

I need some help to use icons on my graph. To be exact I need two things:

  1. Icons as nodes.
  2. Icons beside the nodes.

So I need the things shown in the first and last picture at the top row from the this tutorial.

I think I have to write a stylesheet like:

String styleSheet = "node {size: 100px; fill-mode: image-scaled;}" +
                    "node.fun {fill-image: url('fun.gif');}" +
                    "node.dull {fill-image: url('images/head.png');" +
                    "}";

But somehow I don't get it running, I never get the icons. Could someone show me an example with icons for both of my variants?

Secondly, I always have 5 Nodes. I get the following Form:

But the Order of the Nodes is different every time. I need the same order, because I want to draw more than 1 graph and want to compare them.

0

There are 0 best solutions below