GraphStream Users

Archives de la liste Aide

Re: Dynamic visibility of nodes/edges

Chronologique Discussions 
  • From: guilhelm savin <guilhelm.savin AT>
  • To: "graphstream-users AT" <graphstream-users AT>, "Hargitt, Eric" <ehargitt AT>
  • Subject: Re: Dynamic visibility of nodes/edges
  • Date: Tue, 10 May 2016 09:21:07 +0200

Hi Eric,

`visibility-mode` is a GraphStream' CSS property. You can not directly set CSS using attributes, but you can use classes to get through this.
Say you have a stylesheet like this (stored in the `ui.stylesheet` attribute of the graph) :

node.hide {
  visibility-mode: hidden;

Then you just have to add the `hide` class in the `ui.class` attribute of the node : `node.setAttribute("ui.class", "hide");`.

Hope it helps.

2016-05-09 21:04 GMT+02:00 Hargitt, Eric <ehargitt AT>:



Is there a way to dynamically set the visibility of a node/edge? I’ve tried to use node.setAttribute(“visibility-mode”, “hidden”) unsuccessfully. Is there a workaround for this? Thanks.


Eric Hargitt

Guilhelm Savin
PhD of Computer Science

Archives gérées par MHonArc 2.6.16.

Top of page