GraphStream Users

Archives de la liste Aide

Re: Sprites question

Chronologique Discussions 
  • From: Eduardo Lidanski <eduardo.lidanski AT>
  • To: graphstream-users AT, Antoine Dutot <antoine.dutot AT>
  • Subject: Re: Sprites question
  • Date: Fri, 29 Nov 2013 10:27:19 +0100

Hi Antoine,

thanks for the fix. The testcase is now working well.

My application still has problems with the sprites, I am trying to create a new test case, and I will send it to you then.

Best regards,

Am 26.11.2013 11:00, schrieb Antoine Dutot:
Hello Eduardo,

Indeed there was a bug in the text rendering. Thanks for repporting. It should be fixed in the next nightly build :

Tell us if it works.


2013/11/25 Eduardo Lidanski <eduardo.lidanski AT>

I am not sure why the sprite label is being displayed on the upper left position and is static (refer to screenshot.png).

What am I doing wrong?

public class Test {

    public static void main(String args[]) {

        DefaultGraph g = new DefaultGraph("Graph");
        SpriteManager spriteManager = new SpriteManager(g);

        Sprite s = spriteManager.addSprite("S");
        s.setPosition(Units.PX, 20, 20, 0);
        s.addAttribute("ui.label", "Sprite text");



        g.addEdge("AB", "A", "B");

        g.addEdge("AC", "A", "C");

        g.addEdge("BC", "B", "C");



Thank you,

Archives gérées par MHonArc 2.6.16.

Top of page