GraphStream Users

Archives de la liste Aide

Re: Changing style attribute

Chronologique Discussions 
  • From: Antoine Dutot <antoine.dutot AT>
  • To: graphstream-users AT
  • 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 "" CSS attribute to each node, but this would be inefficient).

Is there a problem with the style sheet ?



2011/7/1 Florent Chuffart <florent.chuffart AT>

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:
      {fill-color: green;}

Is there a way to do that without using stylesheet ?

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


Florent Chuffart
florent.chuffart AT

Archives gérées par MHonArc 2.6.16.

Top of page