Hi Antoine, as I told you, I have issues with the sprites. I created a testcase to demonstrate this. When I show the second sprite (S2), the first one (S1) disappears. So I only see S2, but I should see S1 and S2. If I comment out the part: Sprite s2 = spriteManager.addSprite("S2"); s2.setPosition(Units.PX, 20, 20, 0); s2.attachToNode("B"); s2.addAttribute("ui.label", "S2"); I see S1 only, which is correct. But, as I said, if I put a second sprite (S2) the first one (S1) disappears. Am I doing something wrong or is this an issue? Best regards, Eduardo public class Test { public static void main(String args[]) { DefaultGraph g = new DefaultGraph("Graph"); SpriteManager spriteManager = new SpriteManager(g); g.addNode("A"); Sprite s1 = spriteManager.addSprite("S1"); s1.setPosition(Units.PX, 20, 20, 0); s1.attachToNode("A"); s1.addAttribute("ui.label", "S1"); g.addNode("B"); Sprite s2 = spriteManager.addSprite("S2"); s2.setPosition(Units.PX, 20, 20, 0); s2.attachToNode("B"); s2.addAttribute("ui.label", "S2"); g.addNode("C"); g.addEdge("AB", "A", "B"); g.addEdge("AC", "A", "C"); g.addEdge("BC", "B", "C"); g.display(); } } Am 26.11.2013 11:00, schrieb Antoine
Dutot:
|
Archives gérées par MHonArc 2.6.16.