GraphStream Users

Archives de la liste Aide


Re: Changing style attribute


Chronologique Discussions 
  • From: Antoine Dutot <antoine.dutot AT gmail.com>
  • To: graphstream-users AT litislab.fr
  • Subject: Re: Changing style attribute
  • Date: Fri, 1 Jul 2011 11:39:52 +0200

Hi Florent,

The expected way of changing colors is by using the style sheet, as you have done.

It is not possible to change the colors directly (excepted by passing "ui.style" CSS attribute to each node, but this would be inefficient).

Is there a problem with the style sheet ?

Regards,

Antoine

2011/7/1 Florent Chuffart <florent.chuffart AT gmail.com>
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