- From: Luc Hogie <luc.hogie AT i3s.unice.fr>
- To: graphstream-users AT litislab.fr
- Subject: changing basic node/edge attributes in displayed graphs
- Date: Mon, 27 Jun 2011 16:15:05 +0200
Hi all,
My first post on GS mailing-list... Hope it won't hurt. :)
We've been using GS pre-1.0 for a while in the network simulator we're
developing at INRIA/UNSA. I now switching to GS 1.0.
Basically we are dealing with large graphs whose the displayed
properties change very frequently. In practice, the simulation process
alters the basic properties of nodes/edges: their color, shape and size.
I didn't find a simple and intuitive way to change the value of such
properties in the new version of GS. I'm merely willing to do something
like:
getNode(foo).setColor(Color.red);
To do this, it seems that I now need to produce a CSS which declares a
class for every node in the graph (but what if the number of nodes
changes?), with the adequate values... This would be difficult to write
and would be inefficient.
What about an access to lower level graphics primitives of GS? Anyhow
the CSS parser should perform a call to some setColor(Color) method on
some object... Is there a way to bypass CSS, hence directly invoke the
setColor() (and others) method?
Just wanna do simple things... No need (want) of CSS. :)
Cheers, and long-life to GraphStream!
Luc.
--
Luc Hogie - CNRS Research Engineer
COMRED Research Unit (I3S(CNRS-UNS) INRIA)
http://www-sop.inria.fr/members/Luc.Hogie/
luc.hogie AT inria.fr
+33 4 89 73 24 25 (office)
+33 6 80 91 40 71 (mobile)
Skype ID: luchogie
- changing basic node/edge attributes in displayed graphs, Luc Hogie, 27/06/2011
Archives gérées par MHonArc 2.6.16.