GraphStream Users

Archives de la liste Aide


Changing style attribute


Chronologique Discussions 
  • From: Florent Chuffart <florent.chuffart AT gmail.com>
  • To: graphstream-users AT litislab.fr
  • Subject: Changing style attribute
  • Date: Fri, 1 Jul 2011 10:46:32 +0200

Dears,

I try to change dynamically graphical properties of nodes.
To do that I use following setAttribute method:
n.setAttribute("ui.class", "green");
associated with stylesheet:
node.green {fill-color: green;}

Is there a way to do that without using stylesheet ?

I try
n.setAttribute("color", "green");
and
n.setAttribute("ui.color", "green");
but it do not work.

Regards,


--
Florent Chuffart
florent.chuffart AT gmail.com







Archives gérées par MHonArc 2.6.16.

Top of page